My scheduled task works like this (these are my action sets)
-
- Condition(s): Account is expired and home drive exists
- Action The user's home directory gets archived
-
- Condition(s): Account is expired and mailbox exists
- Action: The user's mailbox gets archived
-
- Condition(s): A powershell script checks, if the home-archive (file path) exists
- Action: The user's home will be deleted
-
- Condition(s): A powershell script checks, if the pst (file path) exists
- Action: The user's account gets deleted
My Problem is
The powershell conditionals don't work as expected. I have to start a second run of the whole task to get them working.
I have the apprehension that the variable Context.ConditionIsMet gets declared at the startup/beginning of the whole task, so it gets be set to false since the archive files do not exist at that time.
Thanks in avance!