Advertisement
Combreal

customObjShort2.ps1

May 9th, 2023 (edited)
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.28 KB | Source Code | 0 0
  1. $CustomObjs=@()
  2.  
  3. $CustomObj = New-Object -TypeName PSObject -Property @{ 'Name' = "Tobby"; 'Date' = "12/02/2023" }
  4. $CustomObjs += $CustomObj
  5. $CustomObj = New-Object -TypeName PSObject -Property @{ 'Name' = "Kazumi"; 'Date' = "21/07/2023" }
  6. $CustomObjs += $CustomObj
  7.  
  8. $CustomObjs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement