SOLVED

Powershell Microsoft Team module v2.3.1 in GUI mode leaves 'Fetching teams' popup window open

Copper Contributor

I'm using the Powershell Microsoft Team module v2.3.1 in GUI mode. Doing a Get-Teams or Get-TeamUser cmdlet leaves a 'Fetching teams' popup window open. I've found no way in Powershell to close those popup windows (note: they are not the main window of my application).

3 Replies
best response confirmed by DarusDP (Copper Contributor)
Solution
Hello
You can try setting
$ProgressPreference = 'SilentlyContinue'
before calling your script

@Andres Gorzelany 

Perfect! That worked. Didn't know of that built-in preference variable. Thanks a million.

Glad to hear that, can you kindly mark my answer as the best solution, please? I appreciate it.
1 best response

Accepted Solutions
best response confirmed by DarusDP (Copper Contributor)
Solution
Hello
You can try setting
$ProgressPreference = 'SilentlyContinue'
before calling your script

View solution in original post