Takes output from one command and sends it to the next
This is a form of ITERATION
#4
Get-Service
Start-
Stop-
Restart-
#5
Get-Process
Stop-
#6
Export-CSV
#7
Get-EventLog
#8
Where-Object
Select-
#9
For()
ForEach(x in y)
ForEach-Object
#10
Switch
Types
Really it does help!
Simple Syntax
[type]$variable
Context-aware dot (.) intelligence
.Net Data Types
Data Types
[string] Fixed-length string of Unicode characters
[char] A Unicode 16-bit character
[byte] An 8-bit unsigned character
[int] 32-bit signed integer
[long] 64-bit signed integer
[bool] Boolean True/False value
[decimal] A 128-bit decimal value
[single] Single-precision 32-bit floating point number
[double] Double-precision 64-bit floating point number
[DateTime] Date and Time
[xml] Xml object
[array] An array of values
[hashtable] Hashtable object
WAT
Automatic Type Conversion
Automatic conversion does not change the variable’s data type.