PowerShell command-line functions used by the adapter
The Active Directory Adapter uses PowerShell command-line functions (cmdlets) for managing Exchange 2010.
PowerShell is a scripting language that is developed by Microsoft to perform administrative tasks more efficiently with applications running on Windows. The adapter establishes a remote PowerShell session with one of the Exchange 2010 servers. In the remote Exchange 2010 PowerShell session, cmdlets are provided for Exchange-specific management tasks.
All cmdlets in the Exchange 2010 Management Shell are presented in verb-noun pairs. The verb-noun pair is always separated by a hyphen without spaces, and the cmdlet nouns are always singular. Verbs refer to the action that the cmdlet takes. Nouns refer to the object on which the cmdlet acts. For example, in the Enable-Mailbox cmdlet, the verb is Enable and the noun is Mailbox.
The following table gives PowerShell cmdlets that are used by the adapter for managing Exchange 2010, and their description.
PowerShell cmdlets | Description |
---|---|
Enable-Mailbox | Enables an existing Active Directory user account for mailbox |
Enable-MailUser | Enables an existing Active Directory user account for mail |
Disable-Mailbox | Deletes an existing mailbox |
Disable-MailUser | Deletes an existing mail-enabled user account |
Set-Mailbox | Modifies an existing mailbox-enabled user account |
Set-MailUser | Modifies an existing mail-enabled user account |
Set-CASMailbox | Sets Client-Access-Server-related (CAS-related) mailbox attributes |
Move-Mailbox | Moves an existing mailbox to a different mailbox store |
Add-MailboxPermission | Adds mailbox permissions |
Remove-MailboxPermission | Removes mailbox permissions |
Get-Mailbox | Gets the attributes of a mailbox. |
Get-MailUser | Gets the mail-related attributes. |