Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

Powershell Management Agent (PSMA) Unable to retrieve schema

$
0
0

Hi all,

This is probably something really obvious however when I try to configure the PSMA (default schema location - c:\psma\schema.ps1) I get the following

---------------------------
Synchronization Service Manager
---------------------------
Unable to retrieve schema. Error: Exception from HRESULT: 0x80231343
---------------------------
OK   
---------------------------

with an error in the event log of:

 

The extensible extension returned an unsupported error.

 The stack trace is:

 "Microsoft.MetadirectoryServices.NoSuchObjectTypeException: Error in the application.
   at Granfeldt.PowerShellManagementAgent.Microsoft.MetadirectoryServices.IMAExtensible2GetSchema.GetSchema(KeyedCollection`2 configParameters)
Forefront Identity Manager 4.3.1935.0"

The schema.ps1 looks like this:

$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-StaffID|String" -Value "U123456"
$obj | Add-Member -Type NoteProperty -Name "company|String" -Value "Spark Digital"
$obj | Add-Member -Type NoteProperty -Name "department|String" -Value "Futures"
$obj | Add-Member -Type NoteProperty -Name "description|String" -Value "An Awesome Joe Bloggs"
$obj | Add-Member -Type NoteProperty -Name "givenName|String" -Value "Joe"
$obj | Add-Member -Type NoteProperty -Name "mail|String" -Value "joe.bloggs@spark.co.nz"
$obj | Add-Member -Type NoteProperty -Name "mobile|String" -Value "Spark Digital"
$obj | Add-Member -Type NoteProperty -Name "name|String" -Value "joe"
$obj | Add-Member -Type NoteProperty -Name "postalCode|String" -Value "1010"
$obj | Add-Member -Type NoteProperty -Name "sn|String" -Value "Bloggs"
$obj | Add-Member -Type NoteProperty -Name "streetAddress|String" -Value "1 Awesome Ave"
$obj | Add-Member -Type NoteProperty -Name "telephoneNumber|String" -Value "01234567"
$obj | Add-Member -Type NoteProperty -Name "title|String" -Value "Top Guy"
$obj

If I remove the file (so it actually doesn't exist) I get a different error:

---------------------------
Synchronization Service Manager
---------------------------
Can not find or access Schema script 'c:\psma\aschema.ps1'. Please make sure that the FIM Synchronization Service service account can read and access this file.
---------------------------
OK   
---------------------------

So I'm assuming all access to the file is correct but there is something about it not quite right?

I'm new to MIM so any help appreciated.

Justin


Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>