I have a PowerShell form to be used by our first line team to create user accounts and Exchange Online mailboxes. At present, the first action taken is to connect to Office 365 and import the Exchange Online commands, however this leaves the form in an unresponsive state until the remote session has finished importing the commands.
Is there a way to run this which will still import the Exchange Online cmdlets and prevent the form being unresponsive as it loads?
Responsive form when importing Exchange Online session
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.
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.
- Alex.ferrie
- Posts: 7
- Last visit: Mon Jun 18, 2018 1:01 am
- Alex.ferrie
- Posts: 7
- Last visit: Mon Jun 18, 2018 1:01 am
Re: Responsive form when importing Exchange Online session
thanks for the response Jvierra, I take it then there's no way to import the session through a job to avoid the delay?
Re: Responsive form when importing Exchange Online session
You can also copy and paste to a ListBox. The plus is that the ListBox can capture and parse the pasted text before displaying it. Pasting to a TextBox cannot do that.