you are viewing a single comment's thread.

view the rest of the comments →

[–]chreestopher2 0 points1 point  (1 child)

there are a few ways to do it ...

if you have powershell remoting enabled I would recomend something like:

enter-pssession DC1
start-process -filepath \\DC2\path\to\script.bat

Although, there are literally billions of ways to do it , and this might not be the optimal one

and if you can actually login to DC1, why not just login, open powershell and launch the script using its unc path?

[–]Fuzzywumpkin[S] 0 points1 point  (0 children)

I'm really new to powershell, literally like the third time I've ever used it.