Power Shell
Power Shell
Understanding
of PowerShell
Topic
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.
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.
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.
Scope of Variable