Viewing scheduled task account?

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 5
Joined: Fri Jun 22, 2007 6:29 am

Viewing scheduled task account?

Post by mdearmon »

I am having trouble figuring out a way to see which account a scheduled task is set to run as. Has anyone done this before? I'm trying to write a script that'll go out and look at all of my servers and give me a list of which scheduled tasks are running as with which user accounts. This will make life a lot easier when it's time to change service account passwords. Anyone know how to do this? The Win32_ScheduledJob WMI class doesn't have any info about the "Run As" field. mdearmon2007-06-22 13:49:40