Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson darrenjrobinson/Schema.ps1
Last active Mar 29, 2016

Embed
What would you like to do?
MIMCSVviaEWSPSMA
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-StaffID|String" -Value "U123456"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "GivenName|String" -Value "Firstname"
$obj | Add-Member -Type NoteProperty -Name "Surname|String" -Value "LastName"
$obj | Add-Member -Type NoteProperty -Name "PreferredName|String" -Value "Joe"
$obj | Add-Member -Type NoteProperty -Name "MiddleName|String" -Value "Jay"
$obj | Add-Member -Type NoteProperty -Name "Department|String" -Value "Marketing"
$obj | Add-Member -Type NoteProperty -Name "Title|String" -Value "Marketing Manager"
$obj | Add-Member -Type NoteProperty -Name "State|String" -Value "NSW"
$obj | Add-Member -Type NoteProperty -Name "EmployeeType|String" -Value "Full Time"
$obj | Add-Member -Type NoteProperty -Name "Company|String" -Value "Legal"
$obj | Add-Member -Type NoteProperty -Name "BirthDate|String" -Value "1980-12-24"
$obj | Add-Member -Type NoteProperty -Name "StartDate|String" -Value "2016-05-25"
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.