版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/localhost01/article/details/79018576
进程相关
netstat -aon|findstr "80" 查看80端口的进程
tasklist|findstr "2016" 根据pid找到进程名称
TASKKILL /F /IM svli.exe 杀掉进程
系统相关
wmic product 查看已安装程序
net stop sharedaccess 关掉防火墙命令
mstsc /admin /v:IP:端口 强制登陆3389
#查看是否开启了远程桌面 fDenyTSConnections REG_DWORD:0x0已开启,0x1表示未开启
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server"
#开启远程桌面
##1.删除原来的fDenyTSConnections 提示确认时,键入yes
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections
##2.开启远程桌面
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0
计划任务相关
#创建计划任务
schtasks /create /tn "SystemService" /tr 【exepath】 /sc onstart /ru "System"
#启动计划任务
schtasks /run /tn "SystemService"
#修改计划任务
schtasks /change /tn "SystemService" /tr 【exepath】 /ru "System"
#终止计划任务启动的程序
schtasks /end /tn "SystemService"
#删除计划任务
schtasks /delete /tn "SystemService" /f
#显示计划在计算机上运行的所有任务
schtasks /query /fo LIST