Advertisement
Guest User

Untitled

a guest
Dec 21st, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $a=get-content C:users.txt
  2. foreach($b in $a)
  3. {New-Mailbox -Name $b -Alias $b –Shared -PrimarySmtpAddress $b@email.org
  4. Add-MailboxPermission $b -User me@email.com -AccessRights FullAccess -AutoMapping $true}
  5.  
  6. user1
  7. user2
  8.  
  9. uat1
  10. qa1
  11. trn1
  12. cln1
  13.  
  14. user1uat@email.org
  15. user1qa1@email.org
  16. user1trn1@email.org
  17. user1cln1@email.org
  18. user2uat@email.org
  19. user2qa1@email.org
  20. user2trn1@email.org
  21. user2clan1@email.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement