Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Tell Which Account a Service is Running Under?

(image) We have services that run under a particular user account. Each time we change the password for that user account, we need to change the password for any services that run under that account as well. But how can we tell which account a service is running under?-- SA(image) (image) (image) Hey, SA. By and large WMI is a pretty ...

How Can I Tell if a Server has Rebooted?

(image) Hey, Scripting Guy! Is there any way to tell whether or not a server has rebooted?-- MvdM(image) (image) (image) Hey, MvdM. We’re assuming that you’re performing a task and, at the end of the task, the computer is supposed to reboot. Needless to say, you want to know, “Well, did the server reboot?” How can you tell whether ...