I was just trying to Power Studio and was writing simple get-addomaincontroller BUT when I ran it, it gave me error for execution policies.
I set execution policy as unristricted in form load and on button as well, but failed.
Anyone has any idea on this ?
NOTE: I dont want to set execution policy on system first and then run the program, that will beat the purpose, I would like the execution policies to either remain same or reverted back once the program deployed, written by this app, is used.
Execution Policy error
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.
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.
- Alexander Riedel
- Posts: 8489
- Last visit: Thu Apr 18, 2024 1:15 pm
- Been upvoted: 37 times
Re: Execution Policy error
Try packaging the script as an executable.
You don't say which PowerShell version you are using, so ....
You don't say which PowerShell version you are using, so ....
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.