378
edits
Changes
→PowerShell 1.0 Command Summary
<tr><td>Variable</td><td>Provider</td><td>Provides access to the Windows PowerShell variables and their values.</td></tr>
<tr bgcolor="#e9e9e6"><td>Certificate</td><td>Provider</td><td>Provides access to X509 certificate stores and certificates from within Windows PowerShell.</td></tr>
</table>
== PowerShell 1.0 Alias Summary ==
Each PowerShell command has a pre-configured alias which can be used to invoke the command. These are often greatly abbreviated to reduce the amount of typing required, and occasionally used to provide a more familiar name.
New aliases may be created, or existing ones changed using the ''Set-Alias'' command. For example, to create an alias of ''list'' for the ''Get-ChildItem'' command (which provides listing of the contents of a directory) the following command would be executed:
<pre>
PS C:\Users\Administrator> set-alias list get-childitem
</pre>
A full list of pre-defined PowerShell 1.0 aliases is provided in the following table:
<table border="1" cellpadding="5" cellspacing="0" id="E3B" style="border-collapse: collapse; border-color:#cccccc; border-style: solid; border-width: 1px; margin-bottom:20px">
<tr bgcolor="#cccccc" style="color:black" valign="top">
<th>
<p>Alias</p>
</th>
<th>
<p>Command</p>
</th>
</tr>
<tr><td>ac</td><td>Add-Content</td></tr>
<tr bgcolor="#e9e9e6"><td>asnp</td><td>Add-PSSnapin</td></tr>
<tr><td>clc</td><td>Clear-Content</td></tr>
<tr bgcolor="#e9e9e6"><td>cli</td><td>Clear-Item</td></tr>
<tr><td>clp</td><td>Clear-ItemProperty</td></tr>
<tr bgcolor="#e9e9e6"><td>clv</td><td>Clear-Variable</td></tr>
<tr><td>cpi</td><td>Copy-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>cpp</td><td>Copy-ItemProperty</td></tr>
<tr><td>cvpa</td><td>Convert-Path</td></tr>
<tr bgcolor="#e9e9e6"><td>diff</td><td>Compare-Object</td></tr>
<tr><td>epal</td><td>Export-Alias</td></tr>
<tr bgcolor="#e9e9e6"><td>epcsv</td><td>Export-Csv</td></tr>
<tr><td>fc</td><td>Format-Custom</td></tr>
<tr bgcolor="#e9e9e6"><td>fl</td><td>Format-List</td></tr>
<tr><td>foreach</td><td>ForEach-Object</td></tr>
<tr bgcolor="#e9e9e6"><td>%</td><td>ForEach-Object</td></tr>
<tr><td>ft</td><td>Format-Table</td></tr>
<tr bgcolor="#e9e9e6"><td>fw</td><td>Format-Wide</td></tr>
<tr><td>gal</td><td>Get-Alias</td></tr>
<tr bgcolor="#e9e9e6"><td>gc</td><td>Get-Content</td></tr>
<tr><td>gci</td><td>Get-ChildItem</td></tr>
<tr bgcolor="#e9e9e6"><td>gcm</td><td>Get-Command</td></tr>
<tr><td>gdr</td><td>Get-PSDrive</td></tr>
<tr bgcolor="#e9e9e6"><td>ghy</td><td>Get-History</td></tr>
<tr><td>gi</td><td>Get-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>gl</td><td>Get-Location</td></tr>
<tr><td>gm</td><td>Get-Member</td></tr>
<tr bgcolor="#e9e9e6"><td>gp</td><td>Get-ItemProperty</td></tr>
<tr><td>gps</td><td>Get-Process</td></tr>
<tr bgcolor="#e9e9e6"><td>group</td><td>Group-Object</td></tr>
<tr><td>gsv</td><td>Get-Service</td></tr>
<tr bgcolor="#e9e9e6"><td>gsnp</td><td>Get-PSSnapin</td></tr>
<tr><td>gu</td><td>Get-Unique</td></tr>
<tr bgcolor="#e9e9e6"><td>gv</td><td>Get-Variable</td></tr>
<tr><td>gwmi</td><td>Get-WmiObject</td></tr>
<tr bgcolor="#e9e9e6"><td>iex</td><td>Invoke-Expression</td></tr>
<tr><td>ihy</td><td>Invoke-History</td></tr>
<tr bgcolor="#e9e9e6"><td>ii</td><td>Invoke-Item</td></tr>
<tr><td>ipal</td><td>Import-Alias</td></tr>
<tr bgcolor="#e9e9e6"><td>ipcsv</td><td>Import-Csv</td></tr>
<tr><td>mi</td><td>Move-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>mp</td><td>Move-ItemProperty</td></tr>
<tr><td>nal</td><td>New-Alias</td></tr>
<tr bgcolor="#e9e9e6"><td>ndr</td><td>New-PSDrive</td></tr>
<tr><td>ni</td><td>New-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>nv</td><td>New-Variable</td></tr>
<tr><td>oh</td><td>Out-Host</td></tr>
<tr bgcolor="#e9e9e6"><td>rdr</td><td>Remove-PSDrive</td></tr>
<tr><td>ri</td><td>Remove-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>rni</td><td>Rename-Item</td></tr>
<tr><td>rnp</td><td>Rename-ItemProperty</td></tr>
<tr bgcolor="#e9e9e6"><td>rp</td><td>Remove-ItemProperty</td></tr>
<tr><td>rsnp</td><td>Remove-PSSnapin</td></tr>
<tr bgcolor="#e9e9e6"><td>rv</td><td>Remove-Variable</td></tr>
<tr><td>rvpa</td><td>Resolve-Path</td></tr>
<tr bgcolor="#e9e9e6"><td>sal</td><td>Set-Alias</td></tr>
<tr><td>sasv</td><td>Start-Service</td></tr>
<tr bgcolor="#e9e9e6"><td>sc</td><td>Set-Content</td></tr>
<tr><td>select</td><td>Select-Object</td></tr>
<tr bgcolor="#e9e9e6"><td>si</td><td>Set-Item</td></tr>
<tr><td>sl</td><td>Set-Location</td></tr>
<tr bgcolor="#e9e9e6"><td>sleep</td><td>Start-Sleep</td></tr>
<tr><td>sort</td><td>Sort-Object</td></tr>
<tr bgcolor="#e9e9e6"><td>sp</td><td>Set-ItemProperty</td></tr>
<tr><td>spps</td><td>Stop-Process</td></tr>
<tr bgcolor="#e9e9e6"><td>spsv</td><td>Stop-Service</td></tr>
<tr><td>sv</td><td>Set-Variable</td></tr>
<tr bgcolor="#e9e9e6"><td>tee</td><td>Tee-Object</td></tr>
<tr><td>where</td><td>Where-Object</td></tr>
<tr bgcolor="#e9e9e6"><td>?</td><td>Where-Object</td></tr>
<tr><td>write</td><td>Write-Output</td></tr>
<tr bgcolor="#e9e9e6"><td>cat</td><td>Get-Content</td></tr>
<tr><td>cd</td><td>Set-Location</td></tr>
<tr bgcolor="#e9e9e6"><td>clear</td><td>Clear-Host</td></tr>
<tr><td>cp</td><td>Copy-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>h</td><td>Get-History</td></tr>
<tr><td>history</td><td>Get-History</td></tr>
<tr bgcolor="#e9e9e6"><td>kill</td><td>Stop-Process</td></tr>
<tr><td>lp</td><td>Out-Printer</td></tr>
<tr bgcolor="#e9e9e6"><td>ls</td><td>Get-ChildItem</td></tr>
<tr><td>mount</td><td>New-PSDrive</td></tr>
<tr bgcolor="#e9e9e6"><td>mv</td><td>Move-Item</td></tr>
<tr><td>popd</td><td>Pop-Location</td></tr>
<tr bgcolor="#e9e9e6"><td>ps</td><td>Get-Process</td></tr>
<tr><td>pushd</td><td>Push-Location</td></tr>
<tr bgcolor="#e9e9e6"><td>pwd</td><td>Get-Location</td></tr>
<tr><td>r</td><td>Invoke-History</td></tr>
<tr bgcolor="#e9e9e6"><td>rm</td><td>Remove-Item</td></tr>
<tr><td>rmdir</td><td>Remove-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>echo</td><td>Write-Output</td></tr>
<tr><td>cls</td><td>Clear-Host</td></tr>
<tr bgcolor="#e9e9e6"><td>chdir</td><td>Set-Location</td></tr>
<tr><td>copy</td><td>Copy-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>del</td><td>Remove-Item</td></tr>
<tr><td>dir</td><td>Get-ChildItem</td></tr>
<tr bgcolor="#e9e9e6"><td>erase</td><td>Remove-Item</td></tr>
<tr><td>move</td><td>Move-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>rd</td><td>Remove-Item</td></tr>
<tr><td>ren</td><td>Rename-Item</td></tr>
<tr bgcolor="#e9e9e6"><td>set</td><td>Set-Variable</td></tr>
<tr><td>type</td><td>Get-Content</td></tr>
</table>