Wednesday, August 31, 2011

How to reset user's Unified Messaging VoiceMail PIN via PowerShell

This one is so easy that I won't type too much :) Set-UMMailboxPIN  -Identity USERNAME Most used parameters: Pin: use this parameter to manually set a new pin to the user SendEmail: set this parameter to $false if you don't want the user to receive an e-mail with the new pin. The default value is $true, which means the user will receive an e-mail with the new pin and information about phone access numbers NotifyEmail: specifies the email...
Ler o texto inteiro ►

How to get mailbox permissions

Last article I've posted (How to grant/remove permissions on an Exchange 2007 mailbox) was about how to SET mailbox permissions, but another cool thing we can do with PowerShell is to GET them for that, you must use the cmdlet Get-MailboxPermission. Get-MailboxPermission -Identity MAILBOX | Format-Table User, AccessRights, IsInherited Most used parameters: Identity: username or email address associated to the mailbox User: use this parameter to...
Ler o texto inteiro ►

How to grant/remove permissions on an Exchange 2007 mailbox

These almost-daily tasks are quite easy to perform via EMC, but infinitely easier through PowerShell... Adds mailbox permissions: Add-MailboxPermission -Identity MAILBOX -User USER -AccessRights FullAccess -InheritanceType All Removes mailbox permissions: Remove-MailboxPermission -Identity MAILBOX -User USER -AccessRight FullAccess -confirm:$false Most used parameters: Identity: the username or email address associated to the mailbox...
Ler o texto inteiro ►

Tuesday, August 30, 2011

User mailbox has more than one primary SMTP address

Today I've got this issue, an user who couldn't receive e-mails from anyone. When I checked his mailbox, EMC showed me an error saying that his account had more than one primary SMTP address, opening user's properties. EMC didn't let me remove any of them since you can't remove the primary. Error message: "There are multiple primary SMTP addresses. Please ensure there is only one primary address for each address type." So the solution I've found...
Ler o texto inteiro ►

How to check Exchange databases status via PowerShell

Run the cmdlet Get-MailboxDatabase to get information about the DB status. Use parameter -Identity to check the status of a single DB and -Server for all DBs in a server. Check the status of a single DB Get-MailboxDatabase -Identity DBNAME -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress Check the status of all DBs in a Server Get-MailboxDatabase -Server SERVERNAME -Status |...
Ler o texto inteiro ►

Monday, August 29, 2011

How to specify PowerShell session scope

As well as Exchange Management Console, Exchange Shell Console allows you to define the operations scope. You can choose for viewing and working either on the entire forest or on a single domain. Exchange 2007 $AdminSessionADSettings.DefaultScope="domain1.contoso.com" $AdminSessionADSettings.ViewEntireForest=$true Exchange 2010 Set-AdServerSettings -RecipientViewRoot "domain2.contoso.com" Set-AdServerSettings -ViewEntireForest $true * when set...
Ler o texto inteiro ►

How to mount/dismount mailbox databases via PowerShell

For several times I had to dismount and re-mount all the mailbox databases from a server, and doing this via Exchange Management Console is way to slow, so I've researched a bit and found some commands to do this with PowerShell. How to check Exchange databases status via PowerShell In order to mount/dismount DBs, use Mount-Database and Dismount-Database respectively. Use Get-MailboxDatabase cmdlet with -Server parameter to...
Ler o texto inteiro ►
Related Posts Plugin for WordPress, Blogger...