Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Created October 9, 2014 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnLBevan/d9df1c58f30538a9e4c8 to your computer and use it in GitHub Desktop.
Save JohnLBevan/d9df1c58f30538a9e4c8 to your computer and use it in GitHub Desktop.
create a custom object the nice way
$adDummy = New-Object –TypeName PSObject –Prop @{
emailSearched = $null;
notFound = $true;
sAmAccountName = $null;
fullname = $null;
firstname = $null;
lastname = $null;
cn = $null;
countryCode = $null;
country = $null;
#title = $null;
title = $null;
department = $null;
company = $null;
email = $null;
adEmail = $null;
proxyEmail = $null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment