The document introduces Windows PowerShell, covering its purpose as a command-line tool and scripting language, features and capabilities, command syntax, and use for administration and security. It provides an agenda for a training session that will demonstrate PowerShell basics like using cmdlets and automating tasks, and managing PowerShell security settings.
2. What Will We Cover?
• The Purpose of Windows PowerShell™
• Features and Capabilities of
Windows PowerShell
• Windows PowerShell Command Syntax
• Management and Security
3. Agenda
• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
4. The Purpose of Windows PowerShell
Command-
Line and
Scripting
Tool
New
Extensible Scripting
Language
Object -
Consistent Oriented
5. Features and Capabilities
More Than 120 Built-In Tools
Object Pipeline
.NET Scripting Support
Compatible with Current Tools
Leverage Existing Automation
and Instrumentation
6. Windows PowerShell Architecture
Other
Exchange
PS Shell
Hosting Application
Hosts
Hosting Interfaces
Session
Script Parser
state
Extended
Pipeline Processor
PowerShell Engine
type system
Error
Command
handling
Processor
Windows PowerShell Engine
cmdlet Interfaces
cmdletProviders
cmdlets
(get, set, copy, push)
cmdletProvider
cmdlet Provider
Interfaces
cmdletProviders
(file system, registry)
7. Windows PowerShell V2 Features
Remoting Modules and Packages
Debugger Events and Transactions
Constrained Runspaces Out-GridView
Graphical Environment Split and Join Operators
Data Language Metadata APIs
Script Background Jobs
Internationalization
8. Agenda
• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
9. Windows PowerShell Syntax
Argument
Name String
Verb Noun
PS> get-service –name “*net*”
Command Parameter
Property Names
Status Name DisplayName
------ ---- -----------
Stopped NetLogon NetLogon
Running Netman Network Connections
Property Values
10. Common Cmdlets
Productive cmdlets Utility cmdlets
Get-Help Format
Get-Help Get-Process Get-Service | Format-List
Get-Command Sorting
Example Get-Process | Sort-Object
-Property CPU
Get-Member
Redirecting Output
Get-Service | Get-Member
Get-Service | Out-File –
Restart-Service FilePath C:tempservices.txt
Restart-Service IISADMIN
12. Agenda
• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
13. Windows Server 2008 Management
Installation
Optional Feature in Windows Server 2008
Activities
View Event Viewer
(Get_Eventlog -logname system -newest 1000)
Stop and Start Services
(Stop_Service iisadmin, Start_Service iisadmin)
Monitor Server Processes
(Get-Process winword, Stop-Process winword)
14. Windows Vista Management
Installation
Free download from Microsoft.com
Activities
File System Navigation
(cd, dir, ls)
Registry Navigation
(cd hklm:, dir, Get-ItemProperty)
Desktop Settings
(Get-WmiObject win32_service -computer fabrikam)
16. Agenda
• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
17. Security and Windows PowerShell
Default Execution Policy Is
Restricted
Execution Policy Can Be
Modified
• Set-ExecutionPolicy
• Group Policy
Policy Effects
Restricted No scripts
AllSigned All scripts must
be signed
RemoteSigned Local scripts,
remote signed
Unrestricted Nothing signed
19. Session Summary
• New Command-Line Tool and Language
• Powerful Scripting Capabilities
• Security Improvements
20. Where to Find More Information
Visit TechNet at: technet.microsoft.com
Also check out TechNet Edge:
edge.technet.com
and TechNet Spotlight:
www.microsoft.com/emea/spotlight
Or visit: www.microsoft.com/technet/srv-200
for additional information about this session
22. Training Resources
Course ID Title
Windows PowerShell for
50025A
Administrators
Automating Windows Server
6434
2008 Administration with
Windows PowerShell
For more training information:
www.microsoft.com/technet/srv-200
23. Become a Microsoft Certified Professional
• What are MCP certifications?
Validation in performing critical IT functions
• Why certify?
Wide recognition of skills gained through experience
More effective deployments with reduced costs
• What certifications are there for IT Pros?
MCTS, MCITP
www.microsoft.com/certification
24. TechNet Plus
TechNet Plus is an essential, premium, Web-enabled and live support resource that provides IT Professionals with
fast and easy access to Microsoft experts, software, and technical information, enhancing IT productivity, control,
and planning.
Evaluate and Learn Plan and Deploy Support and Maintain
Evaluate full versions of all Microsoft Two complimentary Professional Support
commercial software for evaluation— incidents for use 24 hours daily
Use the TechNet Library to plan for
without time limits; this includes all (20-percent discount on additional
deployment using the Knowledge Base,
client, server, and Microsoft Office incidents)
resource kits, and technical training
system applications
Access more than 100 managed
Use exclusive tools, like System Center
Try out all the latest betas before public newsgroups, and get next business day
Capacity Planner, to accurately plan for
release response—guaranteed
and deploy Exchange Server and System
Center Operations Manager
Keep your skills current with quarterly Use the TechNet Library to maintain your
training resources, including select IT environment with security updates,
Microsoft E-Learning courses service packs, and utilities
Get all these resources and more with a TechNet Plus subscription.
For more information, visit: technet.microsoft.com/subscriptions