停用或啟用軟體 Secure Attention Sequence 的登錄值 SoftwareSASGeneration電腦HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

原則 ID
SoftwareSASGeneration
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Vista
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Windows 登入選項

登錄

SoftwareSASGeneration

REG_DWORD電腦
啟用時的值
取決於選項值
元素
設定允許哪個軟體產生 Secure Attention Sequence
選項
項目儲存的值
無0
服務1
輕鬆存取應用程式2
服務和輕鬆存取應用程式3
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; 選項 (只使用其中一個)
; 無
"SoftwareSASGeneration"=dword:00000000
; 服務
"SoftwareSASGeneration"=dword:00000001
; 輕鬆存取應用程式
"SoftwareSASGeneration"=dword:00000002
; 服務和輕鬆存取應用程式
"SoftwareSASGeneration"=dword:00000003
CMD
:: 選項 (只使用其中一個)

:: 無
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "SoftwareSASGeneration" /t REG_DWORD /d 0 /f
:: 服務
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "SoftwareSASGeneration" /t REG_DWORD /d 1 /f
:: 輕鬆存取應用程式
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "SoftwareSASGeneration" /t REG_DWORD /d 2 /f
:: 服務和輕鬆存取應用程式
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "SoftwareSASGeneration" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# 選項 (只使用其中一個)
# 無
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'SoftwareSASGeneration' -PropertyType DWord -Value 0 -Force | Out-Null
# 服務
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'SoftwareSASGeneration' -PropertyType DWord -Value 1 -Force | Out-Null
# 輕鬆存取應用程式
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'SoftwareSASGeneration' -PropertyType DWord -Value 2 -Force | Out-Null
# 服務和輕鬆存取應用程式
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'SoftwareSASGeneration' -PropertyType DWord -Value 3 -Force | Out-Null