Psexec is so much cooler than I thought

I had to do a little project a work and I have used psexec before but never really looked into it a whole lot. The issue is that we normally just xcopy stuff out and then execute it remotely with psexec. In my defense I came up with that looking through other peoples code.

As many are aware with recently vulnerabilities we need to shut down admin shares. So I was bummed out that these scripts would no longer work and then boom. SS64 PSEXEC

-c         Copy the program (command)to the remote system for execution.

Like what!!! How did I never notice this before. That will teach me to not read documentation.

P.S. I really need to switch to powershell, but batch is so much fun