Turn on Script Execution

Brak oficjalnego tekstu w tym języku (wyświetlono oryginał angielski)

Identyfikator zasady
EnableScripts
Zakres
Konfiguracja komputera, Konfiguracja użytkownika
Obsługiwane w systemach
At least Microsoft Windows 7 or Windows Server 2008 family
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Windows PowerShell

Opis

This policy setting lets you configure the script execution policy, controlling which scripts are allowed to run.

If you enable this policy setting, the scripts selected in the drop-down list are allowed to run.

The "Allow only signed scripts" policy setting allows scripts to execute only if they are signed by a trusted publisher.

The "Allow local scripts and remote signed scripts" policy setting allows any local scrips to run; scripts that originate from the Internet must be signed by a trusted publisher.

The "Allow all scripts" policy setting allows all scripts to run.

If you disable this policy setting, no scripts are allowed to run.

Note: This policy setting exists under both "Computer Configuration" and "User Configuration" in the Local Group Policy Editor. The "Computer Configuration" has precedence over "User Configuration."

If you disable or do not configure this policy setting, it reverts to a per-machine preference setting; the default if that is not configured is "No scripts allowed."

Opcje

  • Execution Policy
    • Allow only signed scripts
    • Allow local scripts and remote signed scripts
    • Allow all scripts

Rejestr

KomputerHKEY_LOCAL_MACHINE
  • EnableScriptsREG_DWORD
  • ExecutionPolicyREG_SZ
UżytkownikHKEY_CURRENT_USER
  • EnableScriptsREG_DWORD
  • ExecutionPolicyREG_SZ

Inne zasady w tej samej kategorii

Zobacz wszystkie zasady w tej kategorii (5)