" />
Mots clés : powershellwindows-server-2008-r2powershell
100
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Restricted
Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied. To change the execution policy for the default (LocalMachine) scope, start Windows PowerShell with the "Run as administrator" option. To change the execution policy for the current user, run "Set-ExecutionPolicy -Scope CurrentUser".
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
85
powershell -ExecutionPolicy Bypass -File script.ps1
72
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
%UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1
$profile