Download presentation
Presentation is loading. Please wait.
Published byBartholomew Stokes Modified over 9 years ago
1
Good Morning and Thank You!
3
Have some Fun! Learn at least one thing new! Make myself available to you So please … Ask questions and enjoy!
4
Presented by: Matthew Hester IT Pro Evangelist Microsoft Corporation mhester@microsoft.com@matthewhesterhttp://blogs.technet.com/matthewms My Boss Martin Schray martin.schray@microsoft.com Microsoft Windows Server 2008 R2 Administration Instant Reference
5
Rich script environment Bulk Operations Interactive Shell Task Automation Object Oriented
6
Use PowerShell for consistent, repeatable tasks Built-in providers Talk to Active Directory, registry, WMI, etc. natively Aliases Bridge the gap for previous languages Tab complete If it's a good script I'll do it. And if it's a bad script, and they pay me enough, I'll do it. George Burns
7
Status Name DisplayName ------ ---- ----------- Stopped NetLogon NetLogon Running Netman Network Connections PS> get-service –name “*net*” VerbNoun Name Argument String CommandParameter Property Names Property Values CAsE InSeNsitIve!*
9
The Pipe Operator “|” Output from one command becomes input for the next String together multiple commands Parameter binding is the key “|” routes information to the correct parameters – with very little effort
10
Get-Help Get-Help Get-Process Get-Command Example Get-Member Get-Service | Get-Member Restart-Service Restart-Service IISADMIN Get-Help Get-Help Get-Process Get-Command Example Get-Member Get-Service | Get-Member Restart-Service Restart-Service IISADMIN Format Get-Service | Format-List Sorting Get-Process | Sort-Object -Property CPU Redirecting Output Get-Service | Out-File – FilePath C:\temp\services.txt Format Get-Service | Format-List Sorting Get-Process | Sort-Object -Property CPU Redirecting Output Get-Service | Out-File – FilePath C:\temp\services.txt Productive cmdletsUtility cmdlets
11
PolicyEffects RestrictedNo scripts AllSignedAll scripts must be signed RemoteSignedLocal scripts, remote signed UnrestrictedNothing signed Default Execution Policy Is Restricted Execution Policy Can Be Modified Set-ExecutionPolicy Set-ExecutionPolicy Group Policy Group Policy Execution Policy Can Be Modified Set-ExecutionPolicy Set-ExecutionPolicy Group Policy Group Policy
12
Introduced in v2 Utilizes WinRM (Windows Remote Management), based on WS-MAN (Web Services for Management) A PSSession is a persistent connection Interact with sessions 1:1
13
Abstraction of data Provides consistent access (resembles a file system) Discoverability: Get-PSProvider Write a custom provider
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.