Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Microsoft Identity Manager Office 365 Licensing PowerShell Management Agent Schema Script. Supporting blog post is located here https://blog.darrenjrobinson.com/office365-licensing-management-agent-for-microsoft-identity-manager/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "userPrincipalName|String" -Value "user@user.customer.onmicrosoft.com"
$obj | Add-Member -Type NoteProperty -Name "accountEnabled|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "displayName|String" -Value "Bob Smith"
$obj | Add-Member -Type NoteProperty -Name "givenName|String" -Value "Bob"
$obj | Add-Member -Type NoteProperty -Name "surname|String" -Value "Smith"
$obj | Add-Member -Type NoteProperty -Name "mail|String" -Value "BobSmith@mail.com"
$obj | Add-Member -Type NoteProperty -Name "provisionedPlans|String[]" -Value ("", "")
$obj | Add-Member -Type NoteProperty -Name "assignedLicenses|String[]" -Value ("", "")
$obj | Add-Member -Type NoteProperty -Name "licensesToAdd|String[]" -Value ("", "")
$obj | Add-Member -Type NoteProperty -Name "licensesToRemove|String[]" -Value ("", "")
$obj | Add-Member -Type NoteProperty -Name "assignedPlans|String[]" -Value ("", "")
$obj
$obj2 = New-Object -Type PSCustomObject
$obj2 | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "4fd2b2f2-ea27-4fe5-a8f3-7b1a7c975f34_189a915c-fe4f-4ffa-bde4-85b9628d07a0"
$obj2 | Add-Member -Type NoteProperty -Name "objectID|String" -Value "4fd2b2f2-ea27-4fe5-a8f3-7b1a7c975f34_189a915c-fe4f-4ffa-bde4-85b9628d07a0"
$obj2 | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "LicensePlans"
$obj2 | Add-Member -Type NoteProperty -Name "capabilityStatus|String" -Value "Enabled"
$obj2 | Add-Member -Type NoteProperty -Name "consumedUnits|Integer" -Value 1
$obj2 | Add-Member -Type NoteProperty -Name "enabled|Integer" -Value 100000
$obj2 | Add-Member -Type NoteProperty -Name "suspended|Integer" -Value 1
$obj2 | Add-Member -Type NoteProperty -Name "warning|Integer" -Value 1
$obj2 | Add-Member -Type NoteProperty -Name "skuId|String" -Value "8c4ce438-32a7-4ac5-91a6-e22ae08d9c8b"
$obj2 | Add-Member -Type NoteProperty -Name "skuPartNumber|String" "RIGHTSMANAGEMENT_ADHOC"
$obj2
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.