INDIA  │ 9-11  February  2011<br />virtual techdays<br />Monitoring and managing remote Windows 7 desktops with Windows Po...
About Me<br /><ul><li>Work at Dell Inc.
Windows PowerShell MVP
Author of:
Free eBook: Layman’s guide to PowerShell 2.0 remoting
Free eBook: WMI Query Language via PowerShell
Cheat Sheet: SharePoint 2010 PowerShell cmdlets
Blog at: http://www.ravichaganti.com/blog
Twitter: @Ravikanth</li></li></ul><li>Session Outline<br /><ul><li>Objectives
What is PowerShell?
Cmdlets to manage remote systems
PowerShell remoting for remote system management
PowerShell for WMI event monitoring
Software & hardware inventory
Takeaways
Learn how to use PowerShell cmdlets to manage remote systems
Learn how to use PowerShell remoting
Learn how to monitor remote systems using WMI</li></li></ul><li>What is PowerShell?<br /><ul><li>Object-based Shell
Upcoming SlideShare
Loading in …5
×

PowerShell for monitoring and managing Windows 7 desktops remotely

3,282 views

Published on

This is the deck I used for Virtual Tech Days session in Feb' 2011

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,282
On SlideShare
0
From Embeds
0
Number of Embeds
258
Actions
Shares
0
Downloads
74
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

PowerShell for monitoring and managing Windows 7 desktops remotely

  1. 1. INDIA │ 9-11 February 2011<br />virtual techdays<br />Monitoring and managing remote Windows 7 desktops with Windows PowerShell<br />Ravikanth C │ Dell Inc.<br />
  2. 2. About Me<br /><ul><li>Work at Dell Inc.
  3. 3. Windows PowerShell MVP
  4. 4. Author of:
  5. 5. Free eBook: Layman’s guide to PowerShell 2.0 remoting
  6. 6. Free eBook: WMI Query Language via PowerShell
  7. 7. Cheat Sheet: SharePoint 2010 PowerShell cmdlets
  8. 8. Blog at: http://www.ravichaganti.com/blog
  9. 9. Twitter: @Ravikanth</li></li></ul><li>Session Outline<br /><ul><li>Objectives
  10. 10. What is PowerShell?
  11. 11. Cmdlets to manage remote systems
  12. 12. PowerShell remoting for remote system management
  13. 13. PowerShell for WMI event monitoring
  14. 14. Software & hardware inventory
  15. 15. Takeaways
  16. 16. Learn how to use PowerShell cmdlets to manage remote systems
  17. 17. Learn how to use PowerShell remoting
  18. 18. Learn how to monitor remote systems using WMI</li></li></ul><li>What is PowerShell?<br /><ul><li>Object-based Shell
  19. 19. Interactive commands
  20. 20. Scripting language
  21. 21. Automate everything
  22. 22. Sharable and reusable
  23. 23. Comes built-in on Windows 7 & Windows Server 2008 R2
  24. 24. Download available for Windows XP, Windows 2003, and Windows Vista</li></li></ul><li>Cmdlets to manage remote systems<br /><ul><li>35 cmdlets with –ComputerName parameter
  25. 25. Get-Command-typecmdlet|Where{$_.Definition-like"*-ComputerName*"}</li></li></ul><li>Working with performance data<br /><ul><li>One cmdlet
  26. 26. Get-Counter
  27. 27. Gets live, real-time performance counter data
  28. 28. Sample interval and Maximum samples can be altered
  29. 29. Run as administrator to be able to read all counters</li></li></ul><li>INDIA │ 9-11 February 2011<br />virtual techdays<br />DEMO: Working with Performance Data<br />
  30. 30. Working with processes<br /><ul><li>Five cmdlets
  31. 31. Get-Process
  32. 32. Debug-Process
  33. 33. Start-Process
  34. 34. Stop-Process
  35. 35. Wait-Process
  36. 36. Start-Process and Stop-Process have no –ComputerName Parameter</li></li></ul><li>INDIA │ 9-11 February 2011<br />virtual techdays<br />DEMO: Working with processes<br />
  37. 37. PowerShell remoting<br />Not all remoting is the same<br />Get-Process, Get-Service, and others use .NET Framework methods<br />Not all cmdlets have –ComputerName parameter<br />Remoting requirements:<br />Windows PowerShell 2.0 <br />Microsoft .NET Framework 2.0 or later<br />Windows Remote Management 2.0<br />To configure PowerShell remoting: <br />start PowerShell as admin<br />Use Enable-PSRemoting<br />
  38. 38. Remoting Methods<br />Supports both fan-in and fan-out remoting<br />Invoke-Command<br />Can be used for both 1-1 and 1-many remoting<br />Interactive remoting<br />Similar to a telnet session<br />Enter-PSSession<br />Implicit remoting<br />Import a remote session into local session<br />Import-PSSession<br />
  39. 39. INDIA │ 9-11 February 2011<br />virtual techdays<br />DEMO: PowerShell remoting<br />
  40. 40. WMI Event monitoring<br />Events generated by operating system and several other components<br />Use Register-WMIEvent cmdlet<br />Create temporary consumer to trigger an action based on an event<br />Requires knowledge of WMI Query Language<br />Unregister-Event to delete the consumer<br />
  41. 41. INDIA │ 9-11 February 2011<br />virtual techdays<br />DEMO: WMI Event monitoring<br />
  42. 42. Software Inventory<br />Use Get-WMIObject cmdlet<br />For remote systems use –ComputerName parameter<br />Query Win32_Product WMI class<br />For software installed via MSI<br />Install & Uninstall software remotely<br />Query Windows registry for a list of all other software<br />
  43. 43. INDIA │ 9-11 February 2011<br />virtual techdays<br />DEMO: Software Inventory<br />
  44. 44. INDIA │ 9-11 February 2011<br />virtual techdays<br />RESOURCES<br /><ul><li>PowerShell remoting ebooks
  45. 45. Layman’s guide to PowerShell remoting: http://www.ravichaganti.com/blog/?p=1780
  46. 46. Administrator’s guide to PowerShell remoting: http://powershell.com/cs/media/p/4908.aspx
  47. 47. WMI Query Language
  48. 48. http://www.ravichaganti.com/blog/?p=1979
  49. 49. Getting started with PowerShell
  50. 50. http://technet.microsoft.com/en-us/scriptcenter/dd742419</li></li></ul><li>THANKS│9-11 February 2011<br />virtual techdays<br />Ravikanth@Ravichaganti.com │ @Ravikanth (Twitter)<br />

×