禁止存取 [進階] 功能表中的 [進階設定] 的登錄值 NC_AdvancedSettings使用者HKCU\Software\Policies\Microsoft\Windows\Network Connections

原則 ID
NC_AdvancedSettings
適用範圍
使用者設定
支援的作業系統
僅限 Microsoft Windows Server 2003、Windows XP 及 Windows 2000 Service Pack 1 作業系統
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
網路 › 網路連線

登錄

NC_AdvancedSettings

REG_DWORD使用者
啟用時的值
0
停用時的值
1
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Network Connections]

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

:: 已啟用
reg add "HKCU\Software\Policies\Microsoft\Windows\Network Connections" /v "NC_AdvancedSettings" /t REG_DWORD /d 0 /f
:: 已停用
reg add "HKCU\Software\Policies\Microsoft\Windows\Network Connections" /v "NC_AdvancedSettings" /t REG_DWORD /d 1 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections' -Force | Out-Null

# 選項 (只使用其中一個)
# 已啟用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections' -Name 'NC_AdvancedSettings' -PropertyType DWord -Value 0 -Force | Out-Null
# 已停用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections' -Name 'NC_AdvancedSettings' -PropertyType DWord -Value 1 -Force | Out-Null