修改IP地址:
netsh interface ipv4 set address "本地连接" static 192.168.168.3 255.255.255.0 192.168.168.254
修改DNS:
netsh interface ipv4 set dnsserver "本地连接" static 192.168.168.1 primary
修改计算机名:
netdom renamecomputer oldcomputername /newname:newcomputername /reboot
启用自动更新:
a. cscript scregedit.wsf /au /v (#察看自动更新是否设置值 [1-启用自动更新 4-禁用自动更新])
b. cscript scregedit.wsf /au /4
查看当前服务器已安装和未安装的角色:
get-windowsfeature
启用远程桌面:
c:\windows\system32>cscript scregedit /AR 0
将服务器加域:
add-computername -DomainName contoso.com -restart