Hesaplar: Microsoft hesaplarını engelle: kayıt defteri değeri NoConnectedUserBilgisayarHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

Kategori
Güvenlik Ayarları › Yerel İlkeler › Güvenlik seçenekleri
Kapsam
Bilgisayar Yapılandırması
Kaynak
Windows 11 (sürüm 26H2 · 26300.9457)

Kayıt defteri

NoConnectedUser

REG_DWORDBilgisayar
Etkin değeri
Seçenek değerine bağlıdır
Öğe
Hesaplar: Microsoft hesaplarını engelle
Seçenekler
MaddeSaklanan değer
Bu ilke devre dışı bırakıldı0
Kullanıcılar Microsoft hesaplarını ekleyemez1
Kullanıcılar Microsoft hesabı ekleyemez veya bu hesaplarıyla oturum açamaz3
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Bu ilke devre dışı bırakıldı
"NoConnectedUser"=dword:00000000
; Kullanıcılar Microsoft hesaplarını ekleyemez
"NoConnectedUser"=dword:00000001
; Kullanıcılar Microsoft hesabı ekleyemez veya bu hesaplarıyla oturum açamaz
"NoConnectedUser"=dword:00000003
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Bu ilke devre dışı bırakıldı
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 0 /f
:: Kullanıcılar Microsoft hesaplarını ekleyemez
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 1 /f
:: Kullanıcılar Microsoft hesabı ekleyemez veya bu hesaplarıyla oturum açamaz
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 3 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Bu ilke devre dışı bırakıldı
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 0 -Force | Out-Null
# Kullanıcılar Microsoft hesaplarını ekleyemez
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 1 -Force | Out-Null
# Kullanıcılar Microsoft hesabı ekleyemez veya bu hesaplarıyla oturum açamaz
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 3 -Force | Out-Null