- Local time
- 1:25 AM
- Posts
- 73
- OS
- Windows 11 Pro
Tried already but it doesn't keep the console open in my case.Hold down the alt key when you click OK in the Submit dialog. That will keep the console open and hopefully there will be an error message.
I had already tried a similar code and also set the Gpedit policy about turning on script execution (both in the User and the Computer views).You can run powershell as admin and run:
Code:set-executionpolicy -executionpolicy unrestricted
I even turned off Defender's script scanning. Then I#ve tried turning off Defender completely.
Nothing works.
Here the result of running your code:
set-executionpolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of RemoteSigned.
And when I've run Get-ExecutionPolicy -List after that:
Scope ExecutionPolicy
----- ---------------
MachinePolicy RemoteSigned
UserPolicy RemoteSigned
Process Undefined
CurrentUser RemoteSigned
LocalMachine Unrestricted
My Computer
System One
-
- OS
- Windows 11 Pro
- Computer type
- Laptop
- Manufacturer/Model
- LG Gram 17Z90Q
- CPU
- 12th Gen Intel(R) Core(TM) i7-1260P, 2100 Mhz
- Memory
- 16GB LPDDR5 SDRAM
- Graphics Card(s)
- Intel(R) Iris(R) Xe
- Hard Drives
- Crucial T500 1TB + 2TB
- Mouse
- Logitech MX Master 3S
- Internet Speed
- Cable, 1000Mbit/s