SlideShare a Scribd company logo
1 of 24
Introduction to Windows
PowerShell™



Level 200
What Will We Cover?

• The Purpose of Windows PowerShell™
• Features and Capabilities of
 Windows PowerShell
• Windows PowerShell Command Syntax
• Management and Security
Agenda

• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
The Purpose of Windows PowerShell
                         Command-
                          Line and
                          Scripting
                            Tool



                                            New
       Extensible                         Scripting
                                          Language




                                      Object -
            Consistent                Oriented
Features and Capabilities
            More Than 120 Built-In Tools

            Object Pipeline

            .NET Scripting Support

            Compatible with Current Tools
            Leverage Existing Automation
            and Instrumentation
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)
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
Agenda

• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
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
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
demonstration
Introducing Windows PowerShell
  Use Help to Get Started


 Use Basic Windows PowerShell
  Commands
 Format Output
Agenda

• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
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)
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)
demonstration
Using Windows PowerShell
    Work With the Event Log


    Work With Services


    Work With WMI

Agenda

• Introducing Windows PowerShell
• Using Cmdlets
• Automating Administrative Activities
• Reviewing Security
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
demonstration
Managing PowerShell Security
    Check Execution Policy


    Set Security Policy to Activate Scripts

Session Summary

• New Command-Line Tool and Language


• Powerful Scripting Capabilities


• Security Improvements
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
Supporting Publications




          For more titles, visit:
  www.microsoft.com/technet/srv-200
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
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
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

More Related Content

What's hot

PM : code faster
PM : code fasterPM : code faster
PM : code faster
PHPPRO
 
Php through the eyes of a hoster phpbnl11
Php through the eyes of a hoster phpbnl11Php through the eyes of a hoster phpbnl11
Php through the eyes of a hoster phpbnl11
Combell NV
 

What's hot (20)

Why and How Powershell will rule the Command Line - Barcamp LA 4
Why and How Powershell will rule the Command Line - Barcamp LA 4Why and How Powershell will rule the Command Line - Barcamp LA 4
Why and How Powershell will rule the Command Line - Barcamp LA 4
 
Powershell alias
Powershell aliasPowershell alias
Powershell alias
 
How to do everything with PowerShell
How to do everything with PowerShellHow to do everything with PowerShell
How to do everything with PowerShell
 
PowerShell for Penetration Testers
PowerShell for Penetration TestersPowerShell for Penetration Testers
PowerShell for Penetration Testers
 
Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...
 
Pwning with powershell
Pwning with powershellPwning with powershell
Pwning with powershell
 
I Have the Power(View)
I Have the Power(View)I Have the Power(View)
I Have the Power(View)
 
PowerUp - Automating Windows Privilege Escalation
PowerUp - Automating Windows Privilege EscalationPowerUp - Automating Windows Privilege Escalation
PowerUp - Automating Windows Privilege Escalation
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
Introduction to Flask Micro Framework
Introduction to Flask Micro FrameworkIntroduction to Flask Micro Framework
Introduction to Flask Micro Framework
 
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting ClassThe Dirty Little Secrets They Didn’t Teach You In Pentesting Class
The Dirty Little Secrets They Didn’t Teach You In Pentesting Class
 
Final opensource record 2019
Final opensource record 2019Final opensource record 2019
Final opensource record 2019
 
Pycon - Python for ethical hackers
Pycon - Python for ethical hackers Pycon - Python for ethical hackers
Pycon - Python for ethical hackers
 
A Case Study in Attacking KeePass
A Case Study in Attacking KeePassA Case Study in Attacking KeePass
A Case Study in Attacking KeePass
 
2016 aRcTicCON - Hacking SQL Server on Scale with PowerShell (Slide Updates)
2016 aRcTicCON - Hacking SQL Server on Scale with PowerShell (Slide Updates)2016 aRcTicCON - Hacking SQL Server on Scale with PowerShell (Slide Updates)
2016 aRcTicCON - Hacking SQL Server on Scale with PowerShell (Slide Updates)
 
How to deploy PHP projects with docker
How to deploy PHP projects with dockerHow to deploy PHP projects with docker
How to deploy PHP projects with docker
 
PM : code faster
PM : code fasterPM : code faster
PM : code faster
 
A Year in the Empire
A Year in the EmpireA Year in the Empire
A Year in the Empire
 
Introduction to rest.li
Introduction to rest.liIntroduction to rest.li
Introduction to rest.li
 
Php through the eyes of a hoster phpbnl11
Php through the eyes of a hoster phpbnl11Php through the eyes of a hoster phpbnl11
Php through the eyes of a hoster phpbnl11
 

Similar to Introduction To Windows Power Shell

Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1
chenley
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI
Timothy Chen
 
Scvmm Technical Overview.Son Vu
Scvmm Technical Overview.Son VuScvmm Technical Overview.Son Vu
Scvmm Technical Overview.Son Vu
vncson
 
Win Connections Technical Overview ( Harold W)
Win  Connections    Technical  Overview ( Harold W)Win  Connections    Technical  Overview ( Harold W)
Win Connections Technical Overview ( Harold W)
Harold Wong
 
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
Microsoft TechNet
 

Similar to Introduction To Windows Power Shell (20)

Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90
Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90
Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90
 
Managing Windows Vista With Windows Power Shell
Managing Windows Vista With Windows Power ShellManaging Windows Vista With Windows Power Shell
Managing Windows Vista With Windows Power Shell
 
Microsoft Solutions For Windows Vista Management
Microsoft Solutions For Windows Vista ManagementMicrosoft Solutions For Windows Vista Management
Microsoft Solutions For Windows Vista Management
 
How Microsoft Technologies And Windows Vista Improve Supporting
How Microsoft Technologies And Windows Vista Improve SupportingHow Microsoft Technologies And Windows Vista Improve Supporting
How Microsoft Technologies And Windows Vista Improve Supporting
 
Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1Ws08 R2 Itpro Session 1 Technical Overview Part1
Ws08 R2 Itpro Session 1 Technical Overview Part1
 
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI
 
Deploying Windows Vista Service Pack 1
Deploying Windows Vista Service Pack 1Deploying Windows Vista Service Pack 1
Deploying Windows Vista Service Pack 1
 
Automating Windows Server 2008 R2 Administration with Windows PowerShell
Automating Windows Server 2008 R2 Administration with Windows PowerShellAutomating Windows Server 2008 R2 Administration with Windows PowerShell
Automating Windows Server 2008 R2 Administration with Windows PowerShell
 
Deploying Microsoft System Center in Days
Deploying Microsoft System Center in DaysDeploying Microsoft System Center in Days
Deploying Microsoft System Center in Days
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Scvmm Technical Overview.Son Vu
Scvmm Technical Overview.Son VuScvmm Technical Overview.Son Vu
Scvmm Technical Overview.Son Vu
 
Configuration management benefits for everyone - Rudder @ FLOSSUK Spring Conf...
Configuration management benefits for everyone - Rudder @ FLOSSUK Spring Conf...Configuration management benefits for everyone - Rudder @ FLOSSUK Spring Conf...
Configuration management benefits for everyone - Rudder @ FLOSSUK Spring Conf...
 
Win Connections Technical Overview ( Harold W)
Win  Connections    Technical  Overview ( Harold W)Win  Connections    Technical  Overview ( Harold W)
Win Connections Technical Overview ( Harold W)
 
Win Connections Technical Overview (Harold W)
Win Connections   Technical Overview (Harold W)Win Connections   Technical Overview (Harold W)
Win Connections Technical Overview (Harold W)
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Exploring the Final Frontier of Data Center Orchestration: Network Elements -...
Exploring the Final Frontier of Data Center Orchestration: Network Elements -...Exploring the Final Frontier of Data Center Orchestration: Network Elements -...
Exploring the Final Frontier of Data Center Orchestration: Network Elements -...
 
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
Business Intelligence For It Professionals Part 2 Seamless Data Integration 90
 
ASPNET for PHP Developers
ASPNET for PHP DevelopersASPNET for PHP Developers
ASPNET for PHP Developers
 

More from Microsoft TechNet

More from Microsoft TechNet (14)

Microsoft Windows 7 Enhanced Security And Control
Microsoft Windows 7 Enhanced Security And ControlMicrosoft Windows 7 Enhanced Security And Control
Microsoft Windows 7 Enhanced Security And Control
 
Windows 7 Manageability Solutions
Windows 7 Manageability SolutionsWindows 7 Manageability Solutions
Windows 7 Manageability Solutions
 
Connect Remotely Using Windows® 7 Direct Access
Connect Remotely Using Windows® 7 Direct AccessConnect Remotely Using Windows® 7 Direct Access
Connect Remotely Using Windows® 7 Direct Access
 
Microsoft Windows 7 Improved Network Access
Microsoft Windows 7 Improved Network AccessMicrosoft Windows 7 Improved Network Access
Microsoft Windows 7 Improved Network Access
 
Windows 7 Deployment Enhancements
Windows 7 Deployment EnhancementsWindows 7 Deployment Enhancements
Windows 7 Deployment Enhancements
 
Windows 7 Feature Overview
Windows 7 Feature OverviewWindows 7 Feature Overview
Windows 7 Feature Overview
 
Managing Web Infrastructure Systems with Windows PowerShell 2.0 Demo Script
Managing Web Infrastructure Systems with Windows PowerShell 2.0 Demo ScriptManaging Web Infrastructure Systems with Windows PowerShell 2.0 Demo Script
Managing Web Infrastructure Systems with Windows PowerShell 2.0 Demo Script
 
Monitoring Windows Server Systems Demo Setup
Monitoring Windows Server Systems Demo SetupMonitoring Windows Server Systems Demo Setup
Monitoring Windows Server Systems Demo Setup
 
Monitoring Windows Server Systems Demo Script
Monitoring Windows Server Systems Demo ScriptMonitoring Windows Server Systems Demo Script
Monitoring Windows Server Systems Demo Script
 
Managing Windows Server Systems For Midsize Organizations
Managing Windows Server Systems For Midsize OrganizationsManaging Windows Server Systems For Midsize Organizations
Managing Windows Server Systems For Midsize Organizations
 
Business Intelligence For It Professionals Part 4 Scorecards Dashboards And...
Business Intelligence For It Professionals Part 4   Scorecards Dashboards And...Business Intelligence For It Professionals Part 4   Scorecards Dashboards And...
Business Intelligence For It Professionals Part 4 Scorecards Dashboards And...
 
Bi For It Professionals Part 3 Building And Querying Multidimensional Cubes
Bi For It Professionals Part 3   Building And Querying Multidimensional CubesBi For It Professionals Part 3   Building And Querying Multidimensional Cubes
Bi For It Professionals Part 3 Building And Querying Multidimensional Cubes
 
Group Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And ScriptingGroup Policy Preferences, Templates, And Scripting
Group Policy Preferences, Templates, And Scripting
 
New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Introduction To Windows Power Shell

  • 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
  • 11. demonstration Introducing Windows PowerShell Use Help to Get Started   Use Basic Windows PowerShell Commands  Format Output
  • 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)
  • 15. demonstration Using Windows PowerShell Work With the Event Log  Work With Services  Work With WMI 
  • 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
  • 18. demonstration Managing PowerShell Security Check Execution Policy  Set Security Policy to Activate Scripts 
  • 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
  • 21. Supporting Publications For more titles, visit: www.microsoft.com/technet/srv-200
  • 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