Guys I need some help with PowerShell or batch script which I am not very good in.
I want to stop/kill, delete any temp file and then start a service on remote machine.
Machine name is Leo10
Service name is Leoadmin.exe
Some time I restart service but it doesn’t stop so I kill the process then start and delete some temp folders.
Here is the process which I want in script.
On Leo10 server
If failed then kill process Leoadmin.exe
Delete file on Leo10 server desktop/temp folder if any
Start Leoadmin.exe service