Checkboxes in powershell GUI not working as supposed to
问题 I have a GUI created in powershell, which contains some checkboxes. Later in the script I use the values from the checkboxes to set parameters of a user account, but it seems the script doesn't take the values as intended. I mean, sometimes the account is created with correct values, sometimes not. I wasn't able to discover any pattern when it works and when not. $Orig_exec_policy = Get-ExecutionPolicy Set-ExecutionPolicy Bypass -Force <# This form was created using POSHGUI.com a free online