@echo off
REM *** Make sure to run this script with administrative privileges ***
REM *** Backup the registry ***
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System backup.reg
REM *** Modify the registry ***
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v dontdisplaylastusername /t REG_DWORD /d 1 /f
echo Registry modification complete.
REM *** Optional: Display the modified registry key ***
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v dontdisplaylastusername
pause
沒有留言:
發佈留言