Service Stop and file removal
Hi, I need a powershell script that would stop a windows service ,wait for2 mins,delete a particular file from C:\documents&settings andthen start the service again.Isthis possible ?Thanks
Community Chosen Answer
you can create a batch file and use psexec to push it out.
net stop service
PING 184.108.40.206 -n 1 -w 120000 >NUL
del c:\path\file /q /y
net start service