Testing Schedule-Variables
Testing Schedule-Variables
Determines whether the specified schedule has the specified activation at the specified time.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
The first example determines whether the value of the schedule variable 'Schedule' for the computer 'WIN10-01' has the activation 'Active' at the current time:
Test-EmdbSchedule -Item 'emdb:\rootDSE\Managed Users & Computers\WIN10-01' |
If you want to check this at another time, you can use the parameter -PointInTime:
Test-EmdbSchedule -Item 'emdb:\rootDSE\Managed Users & Computers\WIN10-01' -PointInTime '03.05.2023 03:01:26' |