修改電腦名稱
wmic.exe ComputerSystem Where Name=”%ComputerName%” Rename Name=”NewComputerName”
例:
set /p PCNAME=請輸入電腦編號 :
wmic.exe ComputerSystem Where Name="%ComputerName%" Rename Name=PC%PCNAME%
改網路設備
netsh interface ip set dns “區域連線" static 8.8.8.8
netsh interface ip add dns “區域連線" 168.95.1.1
Disable UAC須重開
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
Enable UAC須重開
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
快速获取需要安装的补丁文件
运行 wuauclt.exe /detectnow
或 wuauclt.exe /resetauthorization /detectnow
可以结合 gpresult 和 gpupdate 命令使用。
透過系統管理員開啟控制台
runas /user:administrator control
資源回收桶
explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}
我的電腦
explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
網路芳鄰
explorer.exe ::{208D2C60-3AEA-1069-A2D7-08002B30309D}