Powershell Execution Restrictions

Zur ansichte der ExecutionPolicy Liste

    Get-ExecutionPolicy –List

Hier sind einige Beispiele für die Verwendung von Set-ExecutionPolicy:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine


    Set-ExecutionPolicy RemoteSigned


    Set-ExecutionPolicy unrestricted

Die vollständige Syntax lautet:

Set-ExecutionPolicy [-ExecutionPolicy*] {Unrestricted | RemoteSigned | AllSigned | Restricted | Default | Bypass |Undefined} [[-Scope] {Process | CurrentUser | LocalMachine | UserPolicy | MachinePolicy}] [-Confirm] [-Force][-WhatIf] [<CommonParameters>]