Test-ScheduledTaskFolder

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)
973 times
Add to favorites
Operating System
3/30/2015
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.
      Suggestions:
         - 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.
      Thanks!