i made a GUI for managing exchange quarantine.
In startup.pss I added connection to Exchange Online. The connection needs to be done before main form appear (viewtopic.php?t=16278) .
I want to add a splashscreen for the duration of the connection (it takes few seconds).
Bonus: would be great if it shows the connection progress for the connect-exchangeonline cmdlet
VERBOSE: Exporting cmdlet 'Find-Package'.
VERBOSE: Exporting cmdlet 'Find-PackageProvider'.
VERBOSE: Exporting cmdlet 'Get-Package'.
..
I tried to create simple form in startup.pss
Code: Select all
$form1.ShowDialog() | Out-Null
connect-exchangeonline @params
$form1.close() | Out-Null
.. but the connection wont happen while custom splash form is opened (blocked by showdialog() method).
I also tried the tool "Form - splash screen" but it only adds to MainForm.psf ..
A little guidenance would help..