2021年1月20日星期三

Restarting windows services remotely via bat file or cmd

is there any solution how to restart services (eg. spooler) via cmd or bat file.

I tried solutions from google but no one successful.

Solution 1:

PsExec \\192.168.1.175 -u username -p password -h stop spooler  

with the "Solution 1" I got this error.

enter image description here

Solution 2

sc \\192.168.1.175 stop spooler  

with the "Solution 2" I got this error.

enter image description here

https://stackoverflow.com/questions/65820918/restarting-windows-services-remotely-via-bat-file-or-cmd January 21, 2021 at 11:49AM

没有评论:

发表评论