Skip to content

Instantly share code, notes, and snippets.

@hapylestat
Created August 14, 2013 11:42
Show Gist options
  • Save hapylestat/6230302 to your computer and use it in GitHub Desktop.
Save hapylestat/6230302 to your computer and use it in GitHub Desktop.
Create .NET object with properties
#1. ========object
$<variable> = New-Object PSObject -Property @{
<field 1> = <value>
<field 2> = <value>
}
#2. ========hashtable
$<variable> = @{
<name> = <value>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment