PowerShell: Value Types

By Xah Lee. Date: .

PowerShell is based on dot Net. Every value blongs to a specific type. Here's the most common types you need to know:

void
nothing.
null
null.
bool
$true and $false
char
single unicode character
int
integer. 32 bits.
long
integer. 64 bits.
float
decimal number. 32 bits.
double
decimal number. 64 bits.
decimal
decimal number. 128 bits.
string
immutable.
Array
array.
Hashtable
hashtable.
switch
for on/off parameters.

PowerShell: Value Types

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples