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
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
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.
January 30, 2024 at 12:37 pm
This was removed by the editor as SPAM
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply