0% found this document useful (0 votes)
21 views12 pages

Power Shell

The document provides an overview of PowerShell, including its history, command structure, cmdlets, parameters and variables. PowerShell is a scripting language and automation engine that allows administration of Windows and applications. It offers command line capabilities and access to .NET types. PowerShell has evolved over several versions with additional features and support for more platforms.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views12 pages

Power Shell

The document provides an overview of PowerShell, including its history, command structure, cmdlets, parameters and variables. PowerShell is a scripting language and automation engine that allows administration of Windows and applications. It offers command line capabilities and access to .NET types. PowerShell has evolved over several versions with additional features and support for more platforms.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Basic

Understanding
of PowerShell
Topic

 Background of PowerShell and Versions


 PowerShell Command Structure
 Cmdlet
 Parameters
 Variables
 PowerShell
Windows PowerShell is an object-oriented automation engine and scripting language. It is
designed mainly for IT professionals and system administrators to control & automate the
administration of Windows OS and other applications.

Why Use PowerShell?


 PowerShell offers a well-integrated command-line experience for the operation system.
 PowerShell allows complete access to all the types in the .NET framework.
 PowerShell is a simple way to manipulate server and workstation components.
 It’s easier for system administrators by creating an easier syntax and scripts.

PowerShell History
 PowerShell first version 1.0 was released in 2006. Today, PowerShell is at version 7.2. As the
year and version gone by, PowerShell’s capabilities and hosting environments grew significantly.
 Version wise History of PowerShell:
 PowerShell version 1 supported the local administration of Windows Server 2008
 PowerShell 2.0 was integrated with Windows 7 and Windows Server 2008 R2. This
version supports for remoting and enhances the capabilities of PowerShell like
transactions, background jobs, events, debugging, etc.
 PowerShell 3.0 was released as an internal part of the Windows management
framework. It was installed on Windows 8 and Windows Server 2012. You can add and
scheduled jobs, session connectivity, automatic module loading, etc.
 PowerShell 4.0 was shipped with Windows 8.1 and Windows Server 2012 R2. In this
version added support for desired state configuration, enhanced debugging, network
diagnostics.
 PowerShell 5.0 was released as internal part of Windows management framework 5.
The feature offers in this version are remote debugging, class definitions, .NET
enumerations, etc.
 PowerShell 7.2 was released. It is built on .NET 6.0. This version offers new operators,
simplified and dynamic error view, automatic new version notifications, etc.
 PowerShell Version List
 PowerShell Command Structure
Cmdlets are designed to have similar structure and syntax.

“Verb –Noun”

Verb describes the action that is to take places like Get, Set, Write, Invoke, revoke etc.
Noun describe as the targets of where action is performed.

PowerShell command are mainly divided into four different form

1)Alias
2)Function
3)Cmdlet
4)Application / Workflow
 Cmdlet
It’s Small , Lightweight Commands that developed in .Net framework, .Net Class.

It will perform a set or single operation. And It’s combination “Verb-Noun” syntax format.

Get-Help
The Get-Help cmdlet displays help at the command line from content in help files on your
computer.

To cmdlet or command details type: Get-Help <cmdlet-name>


 Parameter
1.It’s Basic components of any Cmdlet or Script. It’s providing the Input to cmdlet to filter the purpose.

2. After Cmdlet name anything starting with “- <name> “ is know as Parameter or Parameter name.

3. Parameter having Input type. It’s means whatever we type value it will take from you and Transfer to
cmdlet.

4.In a Cmdlet all the parameter may not have the input type.

Common and Default Parameters


-Verbose
-Debug
-Error Variable
-Out Variable
-Out buffer
 Variables
1. It’s unit of memory in which values like paths, names setting etc. are store.
2. Default value of all variable is “Zero” and It’s represented by “$” sign. It’s basically text
strings.
3. Variables can be used to store any data types of data like it may be int, string or char.

Scope of Variable

1. If variable created in script, it will only available only in script.


2. Whatever we created in console that know as global variable scope. Global variable
active through out the session.
3. Variable that created in console is available through console.

You might also like