To manage the Windows services
Introduction
-
To interact with the Windows services, we will use the command line tool 'net'.
In practice
To stop a Windows service
-
winexe -U HOME/Administrator%Pass123 //192.168.1.125 "net stop Service_Name"
To start a Windows service
-
winexe -U HOME/Administrator%Pass123 //192.168.1.125 "net start Service_Name"
To restart a Windows service
-
winexe -U HOME/Administrator%Pass123 //192.168.1.125 "cmd /C net stop Service_Name && net start Service_Name"
To get the list of started services
-
winexe -U HOME/Administrator%Pass123 //192.168.1.125 "net start"