目錄

Windows Registry Settings

目錄

工作上,有些平常不常用的 Windows registry 需要修改,而這些設定又很不常用根本記不住,在這邊紀錄一下。

  • Disabling UAC
1
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
  • Disabling auto reboot after system failure
1
%windir%\System32\reg.exe ADD HKLM\System\CurrentControlSet\Control\CrashControl /v AutoReboot /t REG_DWORD /d 0 /f
  • Allow System administrator to access the platform through remote side
1
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
  • Allow auto admin logon
1
%windir%\System32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
  • Disabling Windows Defender
1
%windir%\System32\reg.exe ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
  • Disabling Cortana
1
%windir%\System32\reg.exe ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
  • Disabling OneDrive
1
%windir%\System32\reg.exe ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
  • Disabling driver signature enforcement
1
%windir%\System32\reg.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v WhqlDeveloperTestMode /t REG_DWORD /d 1 /f
  • Allow insecure guest auth
1
%windir%\System32\reg.exe ADD "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f