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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Operators

A
Arithmetic
Assignment
Comparison
Logical
Redirectional
Split and Join
Type
Unary
These operators manipulate variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Arithmetic Operators

A
\+
-
*
/
% (modulus) Divides left hand operand by right hand operand and returns remainder
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Assignment Operators

A

=
+=
-=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Logical Operators

A

AND
OR
NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly