Powershell help - List of Scheduled Tasks

Discussion in 'Scripting & Programming' started by OnFire, Dec 7, 2009.

  1. OnFire

    OnFire Nibble Poster

    79
    8
    27
    Can anyone help with the following........

    I have written a powershell script to query services, etc that run on remote servers under the context of the "administrator".

    I also need to get a list of scheduled tasks but only the ones that "run as" administrator.

    I have played with schtasks /query but I can only get a full list of the tasks and not filter it too good. FINDSTR can just get the name and run as field but it will still list them all.

    Anyone tried to do this before??

    BTW I have tried the wmi way but that only works for non custom/user created tasks.
     
    Certifications: See Signature
    WIP: None....at last!!

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.