WSV315 interactive composable programmatic production oriented 70+ active internal partners Lync Server • SharePoint Server • Service Manager • Windows Small Business Server • Exchange.

Download Report

Transcript WSV315 interactive composable programmatic production oriented 70+ active internal partners Lync Server • SharePoint Server • Service Manager • Windows Small Business Server • Exchange.

WSV315
interactive
composable
programmatic
production oriented
70+ active internal partners
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
Mailbox
Stats
Exchange 2003 (VBScript)
Exchange 2007
(PowerShell)
Set listExchange_Mailboxs =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\COMPUTERNAME\ROOT\MicrosoftExchangeV2").InstancesOf("Exchan
ge_Mailbox")
get-mailboxstatistics
–server $servername
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
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
move-storagegrouppath
-identity “First Storage Group“
–log "C:\newlogPath”
StorGroup.MoveLogFiles("C:\newlogPath", 0)
Recipien
t Mgmt
Dim objMailbox As CDOEXM.IMailboxStore
Set objMailbox = GetObject("LDAP://" + DCServer + "CN=FOO,CN=users," + DomainName)
objMailbox.CreateMailbox "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,"
enable-mailbox
-identity domain\FOO
–database “First Storage
Group\Private MDB”
“An object is a collection of parts
and how to use them”
Parts
Parts
Properties
How to use
How to use
Methods
Front Wheel
Pedal
Back Wheel
Steer Left
Pedals
Steer Right
Saddle
Apply Front Brake
Frame
Apply Rear Brake
Parts
Properties
How to use
Methods
DisplayName
Stop()
Status
Start()
RequiredServices
Windows
Service
Pause()
Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-Table
Common Windows PowerShell Parser
Format
Cmdlet
Sort
Cmdlet
Where
Cmdlet
Get-Process
Cmdlet
Windows PowerShell Pipeline Processor
Command
Get-Help
Get-Command
Get-Member
Get-Module
Function
Help about PowerShell commands and topics
Get information about anything that can be invoked
Show what can be done with an object
Shows packages of commands
Command
Action
Compare
Foreach
Group
Measure
Compare 2 sets of objects
Act on each element of a set
Split a set of objects into groups
Measure some property of a set of objects
Select
Sort
Tee
Select a set of properties from a set of objects
Sort objects
Make a copy of a set of objects
Where
Select a subset of objects
Summary / Call to Action
www.microsoft.com/downloads
Automate and Prosper!
http://blogs.msdn.com/PowerShell
http://www.powershellcommunity.org
http://social.technet.microsoft.com/Forums/enUS/winserverpowershell/threads
http://channel9.msdn.com/tags/PowerShell
http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki
http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
http://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershell
http://www.manning.com/payette2
http://oreilly.com/catalog/9780596801519/
http://borntolearn.mslearn.net/comics/b/weblog/archive/2011/04/20/climbingmt-powershell-comic-book-first-pages.aspx
WSV471-INT | Build Reusable Tools in Windows PowerShell
WSV473-INT | Windows PowerShell 3.0: Why Wait? Get Next-Generation PowerShell…
EXL321 | Microsoft Lync Server 2010: Administering Lync Server Deployment
Blue Section
http://www.microsoft.com/cloud/
http://www.microsoft.com/privatecloud/
http://www.microsoft.com/windowsserver/
http://www.microsoft.com/windowsazure/
http://www.microsoft.com/systemcenter/
http://www.microsoft.com/forefront/
http://northamerica.msteched.com
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn