0% found this document useful (0 votes)
22 views

PowerShell Session 2

The document discusses PowerShell topics including pipeline operators, Where-Object, aliases, script blocks, Select-Object, and operators. Pipeline operators connect commands using output and input. Where-Object selects objects based on property values. Aliases and script blocks allow filtering objects. Select-Object selects only specific objects. PowerShell supports various operator types like arithmetic, assignment, comparison, and redirection.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

PowerShell Session 2

The document discusses PowerShell topics including pipeline operators, Where-Object, aliases, script blocks, Select-Object, and operators. Pipeline operators connect commands using output and input. Where-Object selects objects based on property values. Aliases and script blocks allow filtering objects. Select-Object selects only specific objects. PowerShell supports various operator types like arithmetic, assignment, comparison, and redirection.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Basic

Understanding
of PowerShell
Topic

 Last Session Revision


 Advance Filtration
 Operators in details
 Pipeline Operator
 Where-Object
 Aliases
Advance  Script Block

Filtration 


Difference between $_ and $_.
Select-Object
 Get-Member
 It’s series of command connected by
pipeline Operators (|).
 Output of preceding command (pervious
Pipeline command) becomes input of next
command.
Operator  Example :-
Get-Service -name “Windows Update” |
stop - service
 It will select objects based on the property
value.
Output of preceding command (pervious
command) becomes input of next
Where-Object 
command.
Example :-
Get-Service -name “Windows Update” |
stop - service
 It’s used to test more than 2 Object at time.
 Filter Script done by $ (Variable)

Script-Block  Inside Script block whatever the Input is


should mentioned in { }
 It’s used to test more than 2 Object at time.
 Filter Script done by $ (Variable)

Aliases  Inside Script block whatever the Input is


should mentioned in { }
 It will select object Only.
 Mainly It’s working 3 ways.
Select Object
 PowerShell provides a rich set of operators
to manipulate variables. We can divide all
the PowerShell operators into the following
groups −

 Arithmetic Operators
 Assignment Operators
PowerShell  Comparison Operators
Operators  Logical Operators
 Redirection Operators
 Spilt and Join Operators
 Type Operators
 Unary Operators

You might also like