Microsoft Office Tutorials and References
In Depth Information
There are several ways to get help with PowerShell, one is online at http:// . Another source of help
with PowerShell is the PowerShell Getting Started documentation that is installed
along with PowerShell, and the Help cmdlet . All of this information is essentially
the same. It is just displayed differently in each location for preference of the user.
For online help visit the previously mentioned URL. To access the Getting Started
documentation on the system go to Start | All Programs | Windows PowerShell ,
and then click Getting Started . To use the Help cmdlet type Get-Help into a
PowerShell window. As a new PowerShell user you should become familiar with
how to use the Help cmdlet.
A variable is used to hold data. Variables store information that will be used later
within a script. An example would be storing the path to a file that needs to be
referenced later in a script. Variables contain objects, text strings, and integers.
Pipeline also known as Piping is not new. Piping has been in the Unix shell for a
long time. The part that is new to Windows is the ability to pipe objects together and
this is arguably one of the best features of Windows PowerShell. Piping is taking
the output of one cmdlet and passing it into the next cmdlet as input. The Piping
character is "|".
An example of piping cmdlets together is running the Get-Command cmdlet and
piping it to the Sort-Object cmdlet. This allows you to get a list of PowerShell
commands and then sort them for easy reading. The syntax would be Get-Command |
Sort-Object .
Another nice feature of PowerShell is Tab Completion of cmdlets. The way it
works is when you type a part of a common cmdlet you can hit the Tab key on your
keyboard and PowerShell will complete the rest of the cmdlet for you. An example
would be if you typed Get-C and hit Tab , PowerShell will scroll through a list of all
commands that begin with Get-C such as Get-Command . For this example, let's say
you were looking for the Get-Command cmdlet, you would type Get-C and then keep
pressing the Tab key until "Command" is appended to Get-C on the screen. It helps
you put cmdlets into the shell faster.
Search JabSto ::

Custom Search