PowerShell

Guy recommends:
Free config generator

Solarwinds Config Generator

This CG will put you in charge of controlling changes to network routers and other SNMP devices.

Download your free Config Generator



Windows PowerShell Methods

Windows PowerShell Methods

This section concentrates on pure PowerShell techniques.  I will explain how to take those first few tentative steps on your journey to master PowerShell.  If you review my techniques below, then you will get an idea of the range of PowerShell methods available.  My aim is to help you develop an approach to writing PowerShell cmdlets (scripts), which suits your learning style.

Topics for PowerShell Methods

I have sequenced these PowerShell techniques.  Thus if you are new to PowerShell I suggest that you start by downloading PowerShell from Microsoft's site, then go to item: 2. How to execute basic commands.

  1. Download the correct version of PowerShell
  2. How to Execute Basic Commands
  3. Master PowerShell's Key Commands
    Command and Expression Mode
  4. Get-Member Command
  5. Out-file
  6. Create PowerShell cmdlets
    Use PowerShell's built-in cmdlets
  7. Aliases - Types
  8. Where Statement: $_.name
  9. Loops
  10. WMI Techniques
  11. Functions - How to Create
    Function - Example Plist
  12. Enable Your 'Profile'
  13. Set-ExecutionPolicy
  14. Remote PowerShell v 2.0
  15. Stop-Computer (Shutdown)
  16. Registry Edit
  17. -ErrorAction SilentlyContinue
  18. WinRm and WSMan
  19. [System.Math] Functions
  20. Hashtables

 ♣

Contents of my PowerShell Method Pages

Each topic has its own 'how to' instructions and also 'Learning points'.  As a result you will be able to modify my examples to suit your situation.  The only pre-requisite is that you must download the correct version of PowerShell and .Net Framework for your operating system.  Microsoft's site has separate versions of PowerShell for XP, Windows Server 2003 and Vista.  In the case of Windows Server 2008, PowerShell is built-in but you need to 'Add Feature'.

Other Windows PowerShell Topics

  ˚

See more Microsoft PowerShell tutorials

PowerShell Tutorials  • Methods  • Cmdlets  • PS Snapin  • Profile.ps1  • Exchange 2007

Command & Expression Mode  • PowerShell pipeline (|)  • PowerShell 'where'  • PowerShell 'Sort'

If you see an error of any kind, do let me know.  Please report any factual mistakes, grammatical errors or broken links, I will be happy to not only to correct the fault, but also to give you credit.

 

 *


Google

WebThis Site

Guy Recommends: WMI Monitor and It's Free!Solarwinds WMI Monitor

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.

Fortunately, Solarwinds have created the WMI Monitor so that you can examine these gems of performance information for free.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor

 

Home Copyright © 1999-2010 Computer Performance LTD All rights reserved

Please report a broken link, or an error.