This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Policy script for New computer accounts

We have been running a policy script to create new users for ever :).

The business wants to create random computer names for pre-created computer objects, easy enough in in PowerShell with a uniqueness check.

However using a onprecreate event handler, we get a system violation stating the property is owned by system when we attempt to set the CN. "encountered an error when creating the object 'cn=L538784,OU=Laptop,OU=Quest Test Objects,DC=corp,DC=test,DC=com'. The attribute cannot be modified because it is owned by the system. (Exception from HRESULT: 0x800720B1)"

Ideally I would like the policy would  pre populate the computer name when the agent selects new computer of selected OU's.

the original user object script had a policy marker, function onGetPolicyMarker=EDS_APE_TYPE_UNIQUE_NAME

Is there an equivalent for PowerShell and computer objects ?

Thanks,

Parents
  • So you're saying that you're OnPreCreate handler is not getting fired by the SOAP/SPML create request?

    This may be a silly question but is the provisioning policy containing your OnPreCreate policy script actually linked to the location that your SPML call is trying to create the object?
Reply
  • So you're saying that you're OnPreCreate handler is not getting fired by the SOAP/SPML create request?

    This may be a silly question but is the provisioning policy containing your OnPreCreate policy script actually linked to the location that your SPML call is trying to create the object?
Children
No Data