PowerShell-Aufzeichnung aktivieren: Registrierungswert EnableTranscripting und 2 weitereComputerHKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription

Richtlinien-ID
EnableTranscripting
Bereich
Computerkonfiguration, Benutzerkonfiguration
Unterstützt unter
Mindestens Windows 7 oder Windows Server 2008
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
Windows-Komponenten › Windows PowerShell

Registrierung

EnableTranscripting

REG_DWORDComputerBenutzer
Wert bei Aktivierung
1
Wert bei Deaktivierung
0
Mit .reg · CMD · PowerShell anwenden
ComputerComputerweite Einstellung
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Optionen (nur eine verwenden)
; Aktiviert
"EnableTranscripting"=dword:00000001
; Deaktiviert
"EnableTranscripting"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Aktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 1 /f
:: Deaktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# Optionen (nur eine verwenden)
# Aktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 1 -Force | Out-Null
# Deaktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 0 -Force | Out-Null
BenutzerEinstellung pro Konto
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Optionen (nur eine verwenden)
; Aktiviert
"EnableTranscripting"=dword:00000001
; Deaktiviert
"EnableTranscripting"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Aktiviert
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 1 /f
:: Deaktiviert
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# Optionen (nur eine verwenden)
# Aktiviert
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 1 -Force | Out-Null
# Deaktiviert
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 0 -Force | Out-Null

OutputDirectory

REG_SZComputerBenutzer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Verzeichnis der Aufzeichnungsausgabe
Werttyp
REG_SZ
Mit .reg · CMD · PowerShell anwenden
ComputerComputerweite Einstellung
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten
"OutputDirectory"="<Wert eingeben>"
CMD
:: Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "OutputDirectory" /t REG_SZ /d "<Wert eingeben>" /f
PowerShell
# Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'OutputDirectory' -PropertyType String -Value '<Wert eingeben>' -Force | Out-Null
BenutzerEinstellung pro Konto
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten
"OutputDirectory"="<Wert eingeben>"
CMD
:: Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "OutputDirectory" /t REG_SZ /d "<Wert eingeben>" /f
PowerShell
# Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'OutputDirectory' -PropertyType String -Value '<Wert eingeben>' -Force | Out-Null

EnableInvocationHeader

REG_DWORDComputerBenutzer
Angekreuzt
1
Nicht angekreuzt
0
Element
Aufrufheader einschließen:
Werttyp
REG_DWORD
Mit .reg · CMD · PowerShell anwenden
ComputerComputerweite Einstellung
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Optionen (nur eine verwenden)
; Angekreuzt
"EnableInvocationHeader"=dword:00000001
; Nicht angekreuzt
"EnableInvocationHeader"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Angekreuzt
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 1 /f
:: Nicht angekreuzt
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# Optionen (nur eine verwenden)
# Angekreuzt
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 1 -Force | Out-Null
# Nicht angekreuzt
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 0 -Force | Out-Null
BenutzerEinstellung pro Konto
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\Transcription]

; Optionen (nur eine verwenden)
; Angekreuzt
"EnableInvocationHeader"=dword:00000001
; Nicht angekreuzt
"EnableInvocationHeader"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Angekreuzt
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 1 /f
:: Nicht angekreuzt
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# Optionen (nur eine verwenden)
# Angekreuzt
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 1 -Force | Out-Null
# Nicht angekreuzt
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 0 -Force | Out-Null