WSV315
Lync Server SharePoint Server Service Manager Windows Small Business Server Exchange Server Windows Diagnostics Server Manager SQL Server Active Directory Failover Clustering System Center Operations Manager Windows Backup Server Migration System Center Virtual Machine Manager Best Practices Analyzer Active Directory Rights Management Services Internet Information Services Background Intelligent Transfer Service System Center Data Protection Manager Network Load Balancing Remote Desktop Services Group Policy WS-Management AppLocker WMI
Exchange 2003 (VBScript)Exchange 2007 (PowerShell) Mailbox Stats Set listExchange_Mailboxs = GetObject("winmgmts:{impersonationLevel=impersonate}!\\COMPUTERNAME\ROOT\MicrosoftExchangeV2").InstancesOf("Exchan ge_Mailbox") For Each objExchange_Mailbox in listExchange_Mailboxs WScript.echo "AssocContentCount =” + objExchange_Mailbox.AssocContentCount WScript.echo " DateDiscoveredAbsentInDS =” + objExchange_Mailbox.DateDiscoveredAbsentInDS WScript.echo " DeletedMessageSizeExtended =” + objExchange_Mailbox. DeletedMessageSizeExtended WScript.echo " LastLoggedOnUserAccount =” + objExchange_Mailbox. LastLoggedOnUserAccount WScript.echo " LastLogoffTime =” + objExchange_Mailbox. LastLogoffTime WScript.echo " LastLogonTime =” + objExchange_Mailbox. LastLogonTime WScript.echo " LegacyDN =” + objExchange_Mailbox. LegacyDN WScript.echo " MailboxDisplayName =” + objExchange_Mailbox. MailboxDisplayName WScript.echo " MailboxGUID =” + objExchange_Mailbox. MailboxGUID WScript.echo " ServerName =” + objExchange_Mailbox. ServerName WScript.echo " Size =” + objExchange_Mailbox. Size WScript.echo " StorageGroupName =” + objExchange_Mailbox. StorageGroupName WScript.echo " StorageLimitInfo =” + objExchange_Mailbox. StorageLimitInfo WScript.echo " StoreName =” + objExchange_Mailbox. StoreName WScript.echo " TotalItems =” + objExchange_Mailbox. TotalItems Next get-mailboxstatistics –server $servername Databas e Mgmt Dim StorGroup as New CDOEXM.StorageGroup StorGroup.DataSource.Open "LDAP://" + DCServer + "/ CN=First Storage Group,CN=InformationStore,CN=" + Server + ",CN=Servers,CN=First Administrative Group, CN=Administrative Groups,CN=First Organization, CN=Microsoft Exchange,CN=Services, CN=Configuration," + DomainName StorGroup.MoveLogFiles("C:\newlogPath", 0) move-storagegrouppath -identity “First Storage Group“ –log "C:\newlogPath” Recipien t Mgmt Dim objMailbox As CDOEXM.IMailboxStore Set objMailbox = GetObject("LDAP://" + DCServer + "CN=FOO,CN=users," + DomainName) objMailbox.Creat box "LDAP://" + DCServer + "/CN=Private MDB,CN=First Storage Group,CN=InformationStore,CN=" + Server + ",CN=Servers,CN=First Administrative Group, CN=Administrative Groups,CN=First Organization, CN=Microsoft Exchange,CN=Services, CN=Configuration," + DomainName enabl box -identity domain\FOO –database “First Storage Group\Private MDB”
demo
“An object is a collection of parts and how to use them” PartsPropertiesPartsProperties Front Wheel Back Wheel PedalsPedals SaddleSaddle FrameFrame How to use Methods Methods PedalPedal Steer Left Steer Right Apply Front Brake Apply Rear Brake PartsParts How to use
DisplayNameDisplayName PartsPropertiesPartsProperties StatusStatus RequiredServicesRequiredServices Stop()Stop() Methods Methods Start()Start() Pause()Pause() WindowsServiceWindowsService
Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-Table Get-Process Cmdlet Common Windows PowerShell Parser Windows PowerShell Pipeline Processor Where Cmdlet Where Cmdlet Sort Cmdlet Format Cmdlet
demo
CommandFunction Get-HelpHelp about PowerShell commands and topics Get-CommandGet information about anything that can be invoked Get-MemberShow what can be done with an object Get-ModuleShows packages of commands
demo
CommandAction CompareCompare 2 sets of objects ForeachAct on each element of a set GroupSplit a set of objects into groups MeasureMeasure some property of a set of objects SelectSelect a set of properties from a set of objects SortSort objects TeeMake a copy of a set of objects WhereSelect a subset of objects
demo
Summary / Call to Action Automate and Prosper!
Q&A
Required Slide Speakers, please list the Breakout Sessions, Interactive Discussions, Labs, Demo Stations and Certification Exam that relate to your session. Also indicate when they can find you staffing in the TLC.
Resources Sessions On-Demand & CommunityMicrosoft Certification & Training Resources Resources for IT ProfessionalsResources for Developers Connect. Share. Discuss.
Scan the Tag to evaluate this session now on myTechEd Mobile