SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-2568027%22%20slang%3D%22en-US%22%3EPowershell%20Microsoft%20Team%20module%20v2.3.1%20in%20GUI%20mode%20leaves%20'Fetching%20teams'%20popup%20window%20open%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2568027%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20the%20Powershell%20Microsoft%20Team%20module%20v2.3.1%20in%20GUI%20mode.%20Doing%20a%20Get-Teams%20or%20Get-TeamUser%20cmdlet%20leaves%20a%20'Fetching%20teams'%20popup%20window%20open.%20I've%20found%20no%20way%20in%20Powershell%20to%20close%20those%20popup%20windows%20(note%3A%20they%20are%20not%20the%20main%20window%20of%20my%20application).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2568027%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowershell%20Microsoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2569994%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Microsoft%20Team%20module%20v2.3.1%20in%20GUI%20mode%20leaves%20'Fetching%20teams'%20popup%20window%20open%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2569994%22%20slang%3D%22en-US%22%3EHello%3CBR%20%2F%3EYou%20can%20try%20setting%3CBR%20%2F%3E%24ProgressPreference%20%3D%20'SilentlyContinue'%3CBR%20%2F%3Ebefore%20calling%20your%20script%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2570083%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Microsoft%20Team%20module%20v2.3.1%20in%20GUI%20mode%20leaves%20'Fetching%20teams'%20popup%20window%20open%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2570083%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F20390%22%20target%3D%22_blank%22%3E%40Andres%20Gorzelany%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerfect!%20That%20worked.%20Didn't%20know%20of%20that%20built-in%20preference%20variable.%20Thanks%20a%20million.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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 (Occasional 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.