Analyze an existing object
List data types of an object
- abbriviate
$object | gm | select Typename -Unique
List members of an object
Numbers
Integers
- Convert automatically to larger types
[Int32]
,[Int]
32-bit signed integer[Int64]
,[Long]
64-bit signed integer
Decimal numbers
[Single]
,[Float]
Single-precision 32-bit floating point number[Double]
Double-precision 64-bit floating point number
Boolean
[Boolean]
Logical value
Text
[Char]
Single Unicode 16-bit character[String]
Fixed-length string of Unicode characters
Char (A Unicode 16-bit character)
Date and time
Collect multiple items in containers like arrays or dictionaries
Sources:
- 2023-01-18: Types - PowerShell | Microsoft Learn
- 2022-12-17: Difference between single quote (‘) and double quote (“) in PowerShell
- 2022-12-17: PowerShell Multiline String - Working of multiline string using her string
Related:
How types make hard problems easy
Tags: