June 12, 2023 at 2:12 pm
Hi all,
I am new to Powershell, and I tried to setup security permissions but it looks like I have mixed up everything. So now my situation is as follows:
In PS command-line get-executionPolicy shows RemoteSigned.
In Powershell ISE it shows Restricted. Indeed, if I load my previously created scripts, it displayed error and does not execute.
In VS Code it shows RemoteSigned and actually executes my scripts.
How can I fix it to run from ISE as well? Before I started playing with these 2 commands , get- and set-executionPolicy, it was running fine.
Thanks
June 12, 2023 at 3:14 pm
Have you got multiple versions of PowerShell installed? Eg 5.x and 7.x
June 12, 2023 at 7:28 pm
I ran $psversiontable in all 3 environments - ISE, VS Code, Command-line utility, and the version is all the same - 5.1.19041.2673
June 13, 2023 at 3:12 pm
I have had a similar problem with Install-Module. What I installed only seemed to work correctly from VSCode so I gave up using the ISE. As I will soon be installing v7 I suspect VSCode is the way to go anyway.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy