Though we feel comfortable to use graphical interface to configure Exchange server 2010, besides we can also use shell commands to apply configuration to get quick response. In order to configure Exchange 2010 with shell commands, we need to use EMS (Exchange Management Shell). All commands associated in EMS is called Cmdlet.
Generally EMS has some common verbs for Cmdlet action which are New, Get, Set, Enable, Disable and Remove. All these verbs work with some parameters.
Here is some useful shell commands and their description to perform Exchange management.
1. Invoke- item
This command uses in order to open a file as double-click does. If you want to open a file, named Textfile.txt from your desktop then the code is like below
In order to create a group in your organization this command is used.
Example: New-DistributionGroup -Name "Marketing" -OrganizationalUnit "somedomain.com/users"
-SAMAccountName "Marketing" -Type "Distribution"
Use this command to add a user in a distribution group.
Example: Add-DistributionGroupMember -Identity "Marketing" -Member "Russel Crow"
This command allows user to create a new contact of an external address
To check mailbox information this command is used.
Example: Get-Mailbox -Identity JamesBond
Also there is other more Cmdlet for Exchange 2010 and we can find out those with the below help command.
To get help about any command this command is used. It will show about that command which you are seeking help with its full parameter.
Example: Get-Help New –full
Here it will display all information regarding New. That means all command associated with New verb is shown. Also you can pick any of the displayed command with Get-Help command and it will show all information with parameter.