7.2 Powershell Basics 2 Flashcards
1
Q
Powershell Scripting Features
A
cmdlets - Perform common system admin tasks. EG managing registry, services, processes, event logs, windows management unstrumentation Task Oriented Consistent design Simple to use Object based Extensible interface
2
Q
Powershell Scripting
A
Variables
- Named objects
Creating Variables
- Variable name starts with $ and can contain alphanumeric characters and underscore in their names. Variable name must be valid.
3
Q
Operators
A
Arithmetic Assignment Comparison Logical Redirectional Split and Join Type Unary These operators manipulate variables
4
Q
Arithmetic Operators
A
\+ - * / % (modulus) Divides left hand operand by right hand operand and returns remainder
5
Q
Comparison Operators
A
eq (equals) ne (not equals) gt (greater than) ge (greater than or equal to) lt (less than) le (less than or equal to)
6
Q
Assignment Operators
A
=
+=
-=
7
Q
Logical Operators
A
AND
OR
NOT