|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources.
|
Windows PowerShell Verbs for ScriptingIntroduction to Windows PowerShell Verbs for ScriptingIn Windows PowerShell, verbs always come first in the verb-noun command pair. Get-noun, set-value, remove-Item. Only 50 verbs perform 80% of PowerShell tasks. So far I have only used about 25 verbs. Experiment With Get-VerbExperiment with these commands, just substitute the noun that you are interested in: Get-Verb Special note, the pipeline symbol displays as ¦ in PowerShell, but as | in notepad. List of Windows PowerShell Verbs# To get a list of verbs for PowerShell v 2.0 try this Get-command -verb Add (add-Content, works like append) Clear (clear-Variable) (Delete* - there is no delete in PowerShell, instead see remove) Expand Export Format (format-List or format-Table) Get (This is the default verb, not always necessary, often assumed) Group (group-Object often abbreviated to plain group) Import Measure (measure-Object) Move New (new-Object, opens up a whole world of com or net objects) Out (out-File, also out-Printer, even out-Host) Pop Push Read (read-Host is a method of obtaining console input) Remove * (remove-Item. PowerShell's way of deleting) Resume (Service) Restart (Service) Set (set-Location, like cmd's cd) (set-executionpolicy Unrestricted) Sort (Strictly speaking sort-Object) Start (start-Service) Stop (stop-Service) Write (write-Host, also write-Output)
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. | |