windows powershell basics for it professionals

Click here to load reader

Post on 03-Feb-2022

2 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

Slide 1Professionals
Windows PowerShell™ includes an interactive prompt and a scripting environment
Commands are object-based
All shell commands use the same parser
Windows PowerShell 2.0 is installed by default on Windows Server® 2008 R2 and Windows® 7
PowerShell Syntax
PS> get-mailbox –server “smbex01”
Microsoft Confidential 4
Cmdlet Filter Sort
Demonstration: Piping, Outputting, and Formatting
Microsoft Confidential 6
[adsi] Active Directory® Services object
[wmiclass] WMI class
Demonstration: Variables and Types
PowerShell Scripts
Microsoft Confidential 9
Sample Script # This script will get files and folder stored in # C:\Scripts. $a = Get-ChildItem C:\Scripts $a
Run a Script C:\Scripts\MyScript.ps1 & “C:\My Scripts\Test.ps1”
Demonstration: Working with Scripts
Questions and Answers
• Don’t forget to fill out the survey
• For upcoming and previously live webcasts:
www.microsoft.com/webcast
http://go.microsoft.com/fwlink/?LinkId=41781
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.