YouTube で制限付きモードの下限を強制的に適用する のレジストリ値 ForceYouTubeRestrictコンピューターHKLM\Software\Policies\Google\Chrome

ポリシー ID
ForceYouTubeRestrict
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Microsoft Windows 7 以降
出典
Google Chrome Policy Templates (バージョン 156.0.8078.80)
カテゴリ
Google › Google Chrome

レジストリ

ForceYouTubeRestrict

REG_DWORDコンピューターユーザー
…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome 現在のキー
HKCU\Software\Policies\Google\Chrome
有効時の値
オプションの値に依存
要素
YouTube で制限付きモードの下限を強制的に適用する
オプション
項目保存される値
YouTube で制限モードを強制的に適用しない0
YouTube で制限付きモード「中」以上を強制的に適用する1
YouTube で制限付きモードを強制的に適用する2
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome]

; 選択項目 (1 つだけ使用)
; YouTube で制限モードを強制的に適用しない
"ForceYouTubeRestrict"=dword:00000000
; YouTube で制限付きモード「中」以上を強制的に適用する
"ForceYouTubeRestrict"=dword:00000001
; YouTube で制限付きモードを強制的に適用する
"ForceYouTubeRestrict"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: YouTube で制限モードを強制的に適用しない
reg add "HKLM\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 0 /f
:: YouTube で制限付きモード「中」以上を強制的に適用する
reg add "HKLM\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 1 /f
:: YouTube で制限付きモードを強制的に適用する
reg add "HKLM\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# YouTube で制限モードを強制的に適用しない
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 0 -Force | Out-Null
# YouTube で制限付きモード「中」以上を強制的に適用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 1 -Force | Out-Null
# YouTube で制限付きモードを強制的に適用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 2 -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome]

; 選択項目 (1 つだけ使用)
; YouTube で制限モードを強制的に適用しない
"ForceYouTubeRestrict"=dword:00000000
; YouTube で制限付きモード「中」以上を強制的に適用する
"ForceYouTubeRestrict"=dword:00000001
; YouTube で制限付きモードを強制的に適用する
"ForceYouTubeRestrict"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: YouTube で制限モードを強制的に適用しない
reg add "HKCU\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 0 /f
:: YouTube で制限付きモード「中」以上を強制的に適用する
reg add "HKCU\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 1 /f
:: YouTube で制限付きモードを強制的に適用する
reg add "HKCU\Software\Policies\Google\Chrome" /v "ForceYouTubeRestrict" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# YouTube で制限モードを強制的に適用しない
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 0 -Force | Out-Null
# YouTube で制限付きモード「中」以上を強制的に適用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 1 -Force | Out-Null
# YouTube で制限付きモードを強制的に適用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'ForceYouTubeRestrict' -PropertyType DWord -Value 2 -Force | Out-Null