[Windows] PSTools Command Example Records

[Windows] PSTools Command Example Records

PsShutdown

PsShutdown.exe -u administrator -p xxxxxx -r \\EX-DD-Mark

Reference

https://davidvielmetter.com/tricks/four-ways-to-remotely-reboot-a-windows-machine/
Shutdown/Reboot remote computer from command line
https://ss64.com/nt/psshutdown.html https://blogs.technet.microsoft.com/systemcenteressentials/2009/09/01/using-psexec-to-open-a-remote-command-window/

PsExec

psexec \\VMNAME -u VMNAME\ADMIN_ACCOUNT -p PASSWORD reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp” /f /v SecurityLayer /t REG_DWORD /d 0

Psexec.exe \\EX-DD-Mark -u EX-DD-Mark\administrator -p xxxxxx -r  reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp” /f /v SecurityLayer /t REG_DWORD /d 0

Reference

https://richardstk.com/2017/05/17/remotely-disable-network-level-authentication-nla/
Disabling RDP Network Level Authentication (NLA) remotely via the registry
Disable Remote Desktop Network Level Authentication using PowerShell

Add a Comment