Power Shell

 

PowerShell is an object-oriented programming language and interactive command line shell for Microsoft Windows. PowerShell was designed to automate system tasks, such as batch processing, and create systems management tools for commonly implemented processes. The PowerShell language is similar to Perl.

A cmdlet (pronounced “command-let”) is a lightweight Windows PowerShell script that performs a single function.

A command, in this context, is a specific order from a user to the computer’s operating system or to an application to perform a service, such as “Show me all my files” or “Run this program for me.” Although Windows PowerShell includes more than two hundred basic core cmdlets, administrators can also write their own cmdlets and share them.

A cmdlet, which is expressed as a verb-noun pair, has a .ps1 extension. Each cmdlet has a help file that can be accessed by typing Get-Help CmdletName-Detailed.  The detailed view of the cmdlet help file includes a description of the cmdlet, the command syntax, descriptions of the parameters and an example that demonstrate use of the cmdlet.

Popular basic cmdlets include:

Cmdlet Function
 Get-Location  get the current directory
 Set-Location  change the current directory
Copy-Item  copy files
 Remove-Item  remove a file or directory
 Move-Item  move a file
 Rename-Item  rename a file
 New-Item create a new empty file or directory  create a new empty file or directory

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s