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.
This topic is 16 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
mdearmon
Posts: 5
Last visit: Wed Sep 29, 2010 12:35 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
This topic is 16 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked