Microsoft 網路伺服器: 嘗試 S4U2Self 以取得宣告資訊 的登錄值 EnableS4U2SelfForClaims電腦HKLM\System\CurrentControlSet\Services\LanManServer\Parameters

類別
安全性設定 › 本機原則 › 安全性選項
適用範圍
電腦設定
來源
Windows 11 (版本 26H2 · 26300.9457)

登錄

EnableS4U2SelfForClaims

REG_DWORD電腦
啟用時的值
取決於選項值
元素
Microsoft 網路伺服器: 嘗試 S4U2Self 以取得宣告資訊
選項
項目儲存的值
預設0
已啟用1
已停用2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters]

; 選項 (只使用其中一個)
; 預設
"EnableS4U2SelfForClaims"=dword:00000000
; 已啟用
"EnableS4U2SelfForClaims"=dword:00000001
; 已停用
"EnableS4U2SelfForClaims"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 預設
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableS4U2SelfForClaims" /t REG_DWORD /d 0 /f
:: 已啟用
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableS4U2SelfForClaims" /t REG_DWORD /d 1 /f
:: 已停用
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "EnableS4U2SelfForClaims" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Force | Out-Null

# 選項 (只使用其中一個)
# 預設
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableS4U2SelfForClaims' -PropertyType DWord -Value 0 -Force | Out-Null
# 已啟用
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableS4U2SelfForClaims' -PropertyType DWord -Value 1 -Force | Out-Null
# 已停用
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'EnableS4U2SelfForClaims' -PropertyType DWord -Value 2 -Force | Out-Null