Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $content = Import-Csv "C:ScriptsFilefiles.csv" -Header "Users", "Email"
- ForEach ($_.Users in $content) {
- Set-MailboxAutoReplyConfiguration $_.Users -AutoReplyState enabled -ExternalAudience all -InternalMessage "$_.Users no longer works here, please reach them at $_.Email" -ExternalMessage "$_.Ysers no longer works here, please reach them at $_.Email"
- }
- Exit
Add Comment
Please, Sign In to add comment