PowerShell: Value Types

By Xah Lee. Date: . Last updated: .

PowerShell is based on dotnet. Every value belongs to a specific type. Here's the most basic types.

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: Object and Type