Search The Site

Powershell Introduction. Powershell is now a built in application in Windows 7 and Windows Server 2008. Powershell is an application that lets admins and technicians manage networked computers from a command line and from scripts. PowerShell is a powerfull utility for managing your Server enviornment including, Active Directory, Operating System, Registry, Services, Event Log, etc. If you are a system admin or an IT professional I would highly recommend learning how to use powershell. Take the next step in your career, you won't be sorry you did.

Obtaining PowerShell

If you are not running Windows 7 or Server 2008 R2 you will have to download and install powershell as it is not built in to the OS. Download Powershell

Below is a basic list of cmdlets to get you started using powershell. To launch powershell click Start then click Run and then type in powershell and press enter.

PowerShell Cmdlets

Cmdlet

Description

Get-ChildItem

List all files / directories in the (current) directory

Get-Content

Get the content of a file

Get-Command

List available commands

Get-Help

Help on commands

Clear-Host

Clear the screen

Copy-Item

Copy one or several files / a whole directory tree

Move-Item

Move a file / a directory to a new location

Remove-Item

Delete a file / a directory

Rename-Item

Rename a file / a directory

Get-Location

Display the current directory/present working directory.

Pop-Location

Change the current directory to the directory most recently pushed onto the stack

Push-Location

Push the current directory onto the stack

Set-Location

Change the current directory

Tee-Object

Pipe input to a file or variable, then pass the input along the pipeline

Write-Output

Print strings, variables etc. to standard output

Get-Process

List all currently running processes

Stop-Process

Stop a running process

Select-String

Print lines matching a pattern

Set-Variable

Set the value of a variable / create a variable