$OUName=read-host “Please enter the OU name in which you need to enable user’s mailboxes”
Write-host “”
Write-host “Below are the Mailbox data base and respective storage group”
Get-MailboxDatabase | Format-List Name,storagegroup
$DBName=read-host “Please enter the SgDB in which you wish to create this mailboxes”
Get-User -OrganizationalUnit $OUName | Enable-Mailbox -Database $DBName