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

How-to

Advanced

Script Examples