OfficeDev / O365-InvestigationTooling

MIT License
574 stars 361 forks source link

RemediateEmployeeLeaving.ps1 missing RedirectTo option #24

Open nikrampi opened 6 years ago

nikrampi commented 6 years ago

Our usual scenario when employee leaves is giving access to files and redirect mail to a colleague or new worker. So it would be a nice option to have some sort of "transfer ownership to" option that fail-back to admin creds if not specified.

AddNewOwnerToSiteCollection -collectionUrl $collectionUrls[$i] -newOwner $adminCreds.username   

RedirectEmail -redirectFrom $upn -redirectTo $adminCreds.username