6.14.2016

Powershell to create a Room for Exchange 2016

Powershell to create a Room for Exchange 2016

New-Mailbox -database "DB03" -Name SoftballField -OrganizationalUnit "domain.com/path/ROOMS" -DisplayName "SoftballField" -UserPrincipalName SoftballField@domain.com -Room ;Set-User SoftballField -Office “Softball Field”

#use a ";" to join multiple commands together. 

#this command creates the Room mailbox
New-Mailbox -database "DB03" -Name SoftballField -OrganizationalUnit "domain.com/path/ROOMS" -DisplayName "SoftballField" -UserPrincipalName SoftballField@domain.com -Room

#this command adds the location
Set-User SoftballField -Office “Softball Field”

With the ";" combined I am captain planet!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.