Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 6 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I have a little script i'm putting together to help a team take members of a security group and explicitly give them permission to a mailbox with Send-As and FullAccess. To trouble shoot this step i created a label in the GUI and if i try and update from inside the foreach loop it does not update and if i put it right after the foreach it updates no problem.
forgive me if i am just completely missing the point, but i'm not seeing how that helps. Its currently not even attempting to run the foreach loop at all.
The label will not update while you are in that loop unless you call DoEvents. So I would guess at this point you do not know if you are entering the ForEach loop or not.
Why not just set a breakpoint and debug?
This topic is 6 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.