********************** Windows PowerShell Transcript Start Start time: 20090421005742 Username : WOODGROVE\DusHar1 Machine : DC01 (Microsoft Windows NT 5.2.3790 Service Pack 1) ********************** Transcript started, output file is C:\Documents and Settings\DusHar1\Desktop\ManagingExchangeInPowershell.txt PS C:\> Write-output "To get information elements of exchange excute the following commands" To get information elements of exchange excute the following commands PS C:\> Get-Wmiobject -query “Select * from Exchange_Server” -namespace root\MicrosoftExchangeV2 -computer dc01.woodgrove.com __GENUS :2 __CLASS : Exchange_Server __SUPERCLASS : CIM_LogicalElement __DYNASTY : CIM_ManagedSystemElement __RELPATH : Exchange_Server.FQDN="DC01.woodgrove.com" __PROPERTY_COUNT : 22 __DERIVATION : {CIM_LogicalElement, CIM_ManagedSystemElement} __SERVER : DC01 __NAMESPACE : root\MicrosoftExchangeV2 __PATH : \\DC01\root\MicrosoftExchangeV2:Exchange_Server.FQDN="DC01.woodgrove.com" AdministrativeGroup : First Administrative Group AdministrativeNote : Caption : CreationTime : 20090419005056.000000+000 Description : DN : CN=DC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Woodgrove ,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=woodgrove,DC=com ExchangeVersion : Version 6.5 (Build 6944.4) FQDN : DC01.woodgrove.com GUID : {9EC1B43B-903E-43A7-986B-ED989F5724DC} InstallDate : IsFrontEndServer : False LastModificationTime : 20090419005352.000000+000 MessageTrackingEnabled : False MessageTrackingLogFileLifetime : 7 MessageTrackingLogFilePath : C:\Program Files\Exchsrvr\DC01.log MonitoringEnabled : True MTADataPath : C:\Program Files\Exchsrvr\mtadata
Name : DC01 RoutingGroup : First Routing Group Status : SubjectLoggingEnabled : False Type :1
PS C:\> get-wmiobject ExchangeServerState -Namespace "root\cimv2\applications\exchange" -ComputerName dc01.woodgrove.com __GENUS :2 __CLASS : ExchangeServerState __SUPERCLASS : __DYNASTY : ExchangeServerState __RELPATH : ExchangeServerState.DN="CN=DC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups ,CN=Woodgrove,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=woodgrove,DC=com" __PROPERTY_COUNT : 22 __DERIVATION : {} __SERVER : DC01 __NAMESPACE : root\cimv2\applications\exchange __PATH : \\DC01\root\cimv2\applications\exchange:ExchangeServerState.DN="CN=DC01,CN=Se rvers,CN=First Admin istrative Group,CN=Administrative Groups,CN=Woodgrove,CN=Microsoft Exchange,CN=Services,CN=Config uration,DC=woodgrove,DC=com" ClusterState :1 ClusterStateString : OK CPUState :0 CPUStateString : Unknown DisksState :0 DisksStateString : Unknown DN : CN=DC01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Woodgrove,CN=Microso ft Exchange,CN=Services,CN=Configuration,DC=woodgrove,DC=com GroupDN : CN=First Routing Group,CN=Routing Groups,CN=First Administrative Group,CN=Administrative Groups,C N=Woodgrove,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=woodgrove,DC=com GroupGUID : {771D54BC-85C9-4515-80E8-DE3DDBCF1ED8} GUID : {9EC1B43B-903E-43A7-986B-ED989F5724DC} MemoryState :0
MemoryStateString : Unknown Name : DC01 QueuesState :0 QueuesStateString : Unknown ServerMaintenance : False ServerState :1 ServerStateString : OK ServicesState :1 ServicesStateString : OK Unreachable : False Version : 6944
PS C:\> stop-transcript ********************** Windows PowerShell Transcript End End time: 20090421005817 **********************