troubleshooting Question

How to check if a service is running and stop a shutdown via a script

Avatar of trevsoft
trevsoft asked on
Windows Server 2003Windows Server 2008Active Directory
8 Comments1 Solution503 ViewsLast Modified:
Hi Experts,

Im having a bit of an issue with both my servers. One is running SBS 2003 and the other is running server 2008 standard.

Both are running StorageCraft ShadowProtect backup software.  We are also backing up our servers off-site into a backup data centre.

The problem i am having, is when there is a windows update, or a power outage the server reboots or shuts down.

With ShadowProtect, if the backup job is not completed successfully or aborted from the console. It causes the system to do its next backup via VDIFF. This is my problem, when this happens the back goes from taking seconds or minutes, to days.

What i am looking for is a script that will allow me to check and see if the state of the shadowprotect backup is in the process of running and if so, execute an abort so once it is aborted the server can continue to shutdown as it normally would.

Like this once the server comes back online, it wont know any difference and just send the next increment over to the data centre.

I know this solution may be made of a few different solutions, but everyone who helps, thank you in advance.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros