Search code examples
windows-servicespsexec

Start And Stop Windows Service remotely using PSEXEC


How to start and and stop a Windows service remotely using PSEXEC? Preferably the syntax to write I tried the cmdlet given below

psexec \\Server -u Administrator -p Somepassword ServiceName

Solution

  • I can't test this right now, but it ought to be:

    psexec \\server -u username -p password net start ArgusCommunityWorkerService
    

    and

    psexec \\server -u username -p password net stop ArgusCommunityWorkerService