Hi Powershell Gods,
I’m quite new to powershell (well doing proper automation anyway) and i’m after a little advice. I’m writing a script to off-board staff. I can perform all of the technical steps, the problem is that the process is done in 2 phases, 30 days apart:
- The script runs for the first time to suspend the account, set out of office and delegate mailbox and files to an inheritor. This happens at a set date and time as given by HR.
- 30 days later, I need a process to remove delegate permissions and remove licenses and mark the account properly dead.