Hello guys,
i have the local computer called comp1 and the remote computer name comp2
i have a batch file on the local computer and i want to run it on the remote computer, I did in both of the computers: enable-psrremoting -force and when i used the invoke-command -computername comp2 { childlt c:\ } i saw all folders in comp2 c:
how do i run the batch file on the remote computer? i dont need to get any information back from the remote computer to the local just want the batch file to run on the remote...
thanks for the help!