Change PowerShell execution policy to run scripts on Windows 11, 10

preview_player
Показать описание
This video teaches you to change the PowerShell settings to run scripts on Windows 11 or 10, and then it explains the different policies as well as how to restore the most secure settings.

Table of contents
00:00 Intro
00:10 Allow scripts on PowerShell
01:49 Block scripts on PowerShell
02:36 PowerShell execution policy explained
03:26 PowerShell execution policy scopes
04:38 Closing 

#windows11 #windowstutorials #windows11features
Рекомендации по теме
Комментарии
Автор

thanks for the video. Is there a safer way to run these, like as CurrentUser?

I am asked in a non admin setting to run Set-ExecutionPolicy -Scope CurrentUser
which gives me the output
cmdlet Set-ExecutionPolicy at command pipeline position 1
ExecutionPolicy: <with a cursor here>

So i enter "RemoteSigned" and get the output with the list command and when i run
C:\Users\DELL PRECISION> Get-ExecutionPolicy -List

Scope ExecutionPolicy

MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine Undefined

Isnt this safer as its setting the policy to currentuser or does it limit the type of scripts that can be run?

blueisnotgreen