Mirror site is read only www.netnr.com
netnr/ cmd 2018-12-29 21:58
Windows 常用命令操作记录
# 修改密码
net user Administrator 123

# 启用 Administrator 管理员账号
net user Administrator /active:yes

# 查看计算机名称
hostname

# wmic 命令系列
wmic /?

# 修改原计算机名称 OldName 为 netnr
wmic computersystem where "name='OldName' " call rename netnr

# 删除用户 UserName
net user UserName /delete

# 清理屏幕
cls

# 关闭防火墙
netsh firewall set opmode mode=disable

# 开启远程桌面
REG ADD HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f

# 卸载服务
sc delete "服务名"

# 本地安全策略
secpol.msc

# 组策略
gpedit.msc

# 下载
certutil -urlcache -split -f https://ss.netnr.com/2020/05/22/2037505934.db
bitsadmin /transfer myDownLoadJob /download /priority normal "https://ss.netnr.com/2020/05/22/2037505934.db" "E:\\Tmp\\2037505934.db"
powershell (new-object Net.WebClient).DownloadFile('https://ss.netnr.com/2020/05/22/2037505934.db','E:\Tmp\2037505934.db')
powershell iwr -uri "https://ss.netnr.com/2020/05/22/2037505934.db" -outfile "2037505934.db"

# 隐藏窗口启动程序(复制内容保存为 start.vbs 文件,修改程序路径,支持相对和绝对)
Set WS=CreateObject("WScript.Shell")
WS.Run "syncthing.exe",0