Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

need power shell script for Windows Service based.

$
0
0

I am new to Powershell script. I need the script based on the following condition.

1.check the windows services running or not (for example service name test).

2. Stop the test service If running then copy the file to respective service folder.

3. then start the test service.

4.  Don't do the above activity if the service is not available.




Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>