Sie sind auf Seite 1von 6

c 


    

27 Apr 2010 | Brien Posey, Contributor

Digg This! StumbleUpon Del.icio.us

Both Exchange Server 2007 and Exchange Server 2010 use Exchange Management Shell (EMS),
a command-line management tool. Although you can perform basic Exchange management tasks
using the graphical user interface, you can only perform certain administrative actions from the
command line. This tip explains some basic EMS commands for managing Exchange Server
from the command line.

 


The Invoke-Item command can be compared to an automated double-click. For example, you
could use the Invoke-Item command to open an HTML document, instead of double clicking on
the file itself. To do so, append the path and filename to the Invoke-Item command:

 
   


c

  
  
 
!

Active Directory contains a wealth of information. When a new user account is created,
information such as the user's title, department, manager and phone number may be entered into
Active Directory.

You can extract this information from Active Directory using an EMS command. For example,
you would use the following command to create a list of each user's name and job title.

"
#$%  
 & '


The Get-User command retrieves a list of all Active Director users. The pipe symbol ( | )
redirects the command's output into a secondary command. In this case, the secondary command
tells Exchange to format the output as a table and to display the user's name and title. Name and
Title are names of Active Directory attributes; you can substitute other attribute names or add
attributes.


(  

Exchange Server 2007 required you to manage public folders from the command line, unless you
had an Exchange Server 2003 public folder server in your organization. And although Exchange
2007 SP1 included public folder management tools, it's still important to know how to manage
public folders from the command line.

One of the simplest public folder management tasks is creating a new public folder. For example,
suppose that you wanted to create a public folder named K . To do so, you should use this
command:

&)*( % +& ,-,+*


,,+ ,.c/01,

The path is set to \, so this command will create a top-level public folder. You could also create a
sub folder by extending the path. For instance, you would include the HR folder in the pat to
create a folder named 4  beneath the HR folder on the same public folder server.

&)*( % +& ,%  ,+*


,-,+ ,.c/01,

   

EMS also allows you to move a mailbox to a different database. The following command moves
a user named ° to a mailbox database named °:

"
  ,#2,$   +

,#,

This command begins with the Get-Mailbox command, which specifies User 3 in this instance.
But you could use a variation of this command to retrieve multiple mailboxes. Next, the
command pipes the retrieved mailbox into the Move-Mailbox command. Notice that you're
required to provide the Move-Mailbox command with the name of the target mailbox database.


c  

Until you have a handle on how EMS works, it's easy to accidentally perform an unintended
operation. The ±ValidateOnly option protects you from your own mistakes.

The ValidateOnly option allows you to see what would have happened if you had executed a
command -- without any potentially disastrous side effects. If you wanted to find out what would
happen if you executed the Move-Mailbox command from the section above, for example, you
could append the ValidateOnly option to the command. This command allows you to test the
command without actually moving the mailbox.

"
  ,#2,$   +

,#,+3 
4 !

&
 ValidateOnly doesn't work with every EMS command, but does work with several of them.

c  

If you've done a lot of work with the Exchange Management Console (EMC), then you know
that most of the administrative actions you can perform are wizard-based. When you complete a
management task, the wizard's final screen provides you with an EMS command that would
perform the same action. Figure 1 shows the command that displays after creating a new mailbox.

%(56! (  "#


'c  !
( !c 
 

The Exchange Management Console is built on top of EMS. Whenever you perform a task
through the console, it actually sends a command to EMS behind the scenes. This means that the
command shown after the task was completed is the exact command that Exchange used
internally.

á  
      
         


  
 
!
"  ! #!  $
%& " !'
' 
  '' 
"4 
" 
%  
"
'( 


 ! "
   

"!
     )
 ' 
 


%
4 * $á

  
!   
!     
+ +
%,+-),).) 
+   % 
"     % 
 
/ 
     
!  
!!!    

! ( 
 

7.
( )

Digg This! StumbleUpon Del.icio.us

'); // -->

c8-&"cc.c .&0

!"  

c *( % 


Migrate Exchange Public Folders to SharePoint Online with "One-Hop"
www.Metalogix.net

&
9c   !
NetApp Helps You Preserve Email Integrity & Expand Exchange Quotas
www.NetApp.com/IN

c *4*2 

Reliable, global mailboxes support. For Exchange Server 2007/SBS.
MAPILab.com

c.c 4&c&

  
c  /::1
Fixing certificate mismatch errors in Outlook 2007
Configuring and monitoring Exchange Server 2007 mailboxes
Top Exchange Server 2007 virtualization considerations
Exchange Server 2007 clustering explained
Protect Exchange Server from viruses and spam with ForeFront Security
Requirements for connecting mobile devices to Exchange 2003
DPM and Exchange Server 2007 essentials
How not to overload Exchange Server 2007 domain controllers
Exchange Server 2007's tools for securing mobile environments
Troubleshooting Exchange Server 2007 issues
Microsoft Exchange Server 2007 Research
  
c   

  
Reduce help desk calls with the Exchange Control Panel
Exchange Server 2007's tools for securing mobile environments
Grant users access to another user's Outlook 2007 mailbox
Problems viewing Exchange tabs after Exchange migration
An introduction to the Exchange Remote Connectivity Analyzer tool
Prevent Microsoft Outlook 2007 from hanging when forwarding email
Testing Unified Messaging connectivity in Exchange 2007
Microsoft Exchange Server 2007 performance tutorial
How to custom-configure a Microsoft Outlook 2007 install using OCT
Top Exchange Server performance monitoring and troubleshooting tools
Microsoft Exchange Server Administration Tools Research
  
c     

Exchange Server 2010 legal hold and multi-mailbox search commands


Configuring and monitoring Exchange Server 2007 mailboxes
Microsoft adds storage provisioning to Exchange Server
Permanently remove a POP email account from Outlook 2003
How Exchange Server 2010 Shadow Redundancy prevents message loss
Troubleshooting Exchange Server 2007 issues
New OWA features in Exchange Server 2010
Grant users access to another user's Outlook 2007 mailbox
Understanding the Legal Hold role in Exchange Server 2010
Defining the relationship between Outlook, AD and Exchange Server
c.c ".4 ;c
Terms from Whatis.com í the technology online dictionary
Remote Installation Service (SearchExchange.com)
TCPMAN (SearchExchange.com)
c.c c 4#c
2020software.com, trial software downloads for accounting software, ERP software, CRM
software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer

Das könnte Ihnen auch gefallen