PowerShell トランスクリプションを有効にする のレジストリ値 EnableTranscripting ほか 2 件ユーザーHKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription

ポリシー ID
EnableTranscripting
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Windows 7 以降および Microsoft Windows Server 2008 ファミリ以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › Windows PowerShell

レジストリ

EnableTranscripting

REG_DWORDユーザーコンピューター
有効時の値
1
無効時の値
0
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; 有効
"EnableTranscripting"=dword:00000001
; 無効
"EnableTranscripting"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: 有効
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 1 /f
:: 無効
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 有効
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 1 -Force | Out-Null
# 無効
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 0 -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; 有効
"EnableTranscripting"=dword:00000001
; 無効
"EnableTranscripting"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: 有効
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 1 /f
:: 無効
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableTranscripting" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 有効
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 1 -Force | Out-Null
# 無効
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableTranscripting' -PropertyType DWord -Value 0 -Force | Out-Null

OutputDirectory

REG_SZユーザーコンピューター
有効時の値
オプションの値に依存
要素
トランスクリプト出力ディレクトリ
値の種類
REG_SZ
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

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

; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください
"OutputDirectory"="<値を入力>"
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "OutputDirectory" /t REG_SZ /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

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 '<値を入力>' -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

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

; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください
"OutputDirectory"="<値を入力>"
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "OutputDirectory" /t REG_SZ /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

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 '<値を入力>' -Force | Out-Null

EnableInvocationHeader

REG_DWORDユーザーコンピューター
チェックあり
1
チェックなし
0
要素
呼び出しヘッダーを含める:
値の種類
REG_DWORD
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; チェックあり
"EnableInvocationHeader"=dword:00000001
; チェックなし
"EnableInvocationHeader"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: チェックあり
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 1 /f
:: チェックなし
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# チェックあり
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 1 -Force | Out-Null
# チェックなし
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 0 -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; チェックあり
"EnableInvocationHeader"=dword:00000001
; チェックなし
"EnableInvocationHeader"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: チェックあり
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 1 /f
:: チェックなし
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\Transcription" /v "EnableInvocationHeader" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# チェックあり
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 1 -Force | Out-Null
# チェックなし
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\Transcription' -Name 'EnableInvocationHeader' -PropertyType DWord -Value 0 -Force | Out-Null