|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources.
|
Windows PowerShell Examples of Real Life TasksWindows PowerShell Examples of Real Life TasksThis section is dedicated to putting PowerShell into action. I have selected topics to illustrate how PowerShell can help with real life tasks.
♣ Contents of My PowerShell Example PagesEach 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'. Real Life PowerShell Example: Get-Eventlog Remote EventIDPowerShell's Get-Eventlog is tricky to operate. What makes it easier is focussing on the parameters, especially -logname and for remoting, -computer. Once you get the basics working there is a wealth of techniques and properties you can apply to this most versatile cmdlet. Scenario: You need to investigate a particular
EventID. # PowerShell Remote EventLog example with specific EventID Note 1: Please change -lt to -eq, and '100' to the EventID you are researching. Note 2: The above script is ready for remoting, just change the value of $Machine variable. Note 3: See more about Eventlogs
Guy Recommends: Solarwinds' Free Bulk Import Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Home Copyright © 1999-2012 Computer Performance LTD All rights reserved Please report a broken link, or an error. | |