Actually, we tried the Powershell command first
add-cmreportingservicepoint
and its wierd that the command exist, but does not work. Would be so much easier if one could do it that way instead but I guess we are missing something thats why it doesn't work.
looked at your script and registered the dll from sccm 2007 SDK. Tried it with no changes at all exept sitecode but it bails. so right now I do not have a script exept yours -:)
Exception setting "Path": "Cannot convert value "\.ROOTSMSSite_T01:SMS_SCI_SysResUse" to type "System.Management.Manage
mentPath". Error: "Invalid parameter ""
At C:\temp\sdk PS add role.ps1:30 char:3
+ $role_class.psbase.Path ="\.ROOTSMSSite_T01:SMS_SCI_SysResUse"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : CatchFromBaseAdapterSetValue