This script uses the Schedule.Service COM-object to query the local or a remote computer in order to test if a certain scheduled task folder exists.

5 Star
1,012 times
Add to favorites
Operating System
E-mail Twitter del.icio.us Digg Facebook
  • Suggestion: adapt for connect() without computer name
    1 Posts | Last post March 05, 2020
    • When connecting to a specific computer name (even localhost), current account must be part of administrators group. This makes the function unusable for non-administrative users.
         - eliminate default value for $ComputerName parameter
         - if $ComputerName is $null, then instead of $Schedule.Connect($Computer) use $Schedule.Connect()
      , this way it can be used for regular users.