You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm working with Powershell on Windows 10 and using 2.5.0 version. I'm trying to develop a winform app and i have detected that functions related to Microsoft API graph (i have tried with Get-PnPTeamsUser and Get-PnPMicrosoft365GroupMember) makes process to freeze when called through a click button but not using a terminal. However other functions like Get-PnPGroup, Get-PnPSiteCollectionAdmin work fine.
This discussion was converted from issue #4114 on July 25, 2024 17:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm working with Powershell on Windows 10 and using 2.5.0 version. I'm trying to develop a winform app and i have detected that functions related to Microsoft API graph (i have tried with Get-PnPTeamsUser and Get-PnPMicrosoft365GroupMember) makes process to freeze when called through a click button but not using a terminal. However other functions like Get-PnPGroup, Get-PnPSiteCollectionAdmin work fine.
As an example:
$button.Add_Click({
Connect-PnPOnline -URL "xxxxxxxxxxxxxx" -Interactive
Get-PnPTeamsUser -Team "xxxxxx" <-------- It gets freeze
Write-Output("Never reach this")
})
Directly on terminal works fine
Connect-PnPOnline -URL "xxxxxxxxxxxxxx" -Interactive
Get-PnPTeamsUser -Team "xxxxxx"
Write-Output("Reach this")
Beta Was this translation helpful? Give feedback.
All reactions