通过让此账号本地登录来断开远程连接,以实现不锁定的效果。
在被控主机以管理员身份运行以下bat脚本来断开连接
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)
通过让此账号本地登录来断开远程连接,以实现不锁定的效果。
在被控主机以管理员身份运行以下bat脚本来断开连接
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)