ProgressBar while waiting for module to import

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
Androide
Posts: 1
Joined: Wed Jan 10, 2018 12:02 pm

ProgressBar while waiting for module to import

Post by Androide » Fri Apr 05, 2019 7:47 am

Hey guys,

I'm trying to get a progressbar to display while waiting for VMware.PowerCLI to import. This module takes a bit of time to load up so I want my application to show a progressbar while waiting for the module to load. I've been trying to get this work but can't seem to get the logic down. I tried running the import module as a powershell job but haven't managed to get the progressbar to realize the module is loaded. Any suggestions?

Thanks,

jvierra
Posts: 14018
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: ProgressBar while waiting for module to import

Post by jvierra » Fri Apr 05, 2019 8:19 am

Use the "Job Tracker" custom control set.

Locked