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

Updating EDS_CONTROL_OBJECT_DN Not Working - ARS 7

I've created a workstation deprovisioning policy, this policy changes properties, disabled and moves a workstation to a deprovisioned OU. This isn't a form policy, it's an attribute setter command. It flips a boolean to true which kicks off the policy and everything completes just fine expect it throws an administration error because it isn't updating the EDS_Control_Object_DN instead of updating the destination DN on the website. Below is the snippet of code from the onPostModify function:

#Disable and move Object to Defined OU and Refresh Page with Correct DN
Disable-QADComputer $GUID
$MoveResult = Move-QADObject $DN -NewParentContainer $newParent -Proxy
$RenameResult = Rename-QADObject $MoveResult.DN -NewName $newCN -Proxy
$NewSamResult = Get-QADComputer $RenameResult.DN -Proxy | Set-QADComputer -sAMAccountName "$($newCN)$" -ObjectAttributes @{DNSHostName = ""; servicePrincipalName = ""} -Proxy
$Request.PutOutControl(11, 3, $NewSamResult.DN)

 

I've also noticed there is a way to set controls in the workflow in ARS 7 but that doesn't seem to work either. There isn't really any documentation on how to use that either.

Parents
  • It could be. I'm not sure that's it a good idea to effectively perform two object renames in succession the way you are (i.e. move then CN change)

    Does it work if you don't do the CN change?
    What if you do the CN change first, followed by a PutOutControl and then the move.

    Also, you didn't answer my question about the possibility of using the built-in workflow Move activity.
Reply
  • It could be. I'm not sure that's it a good idea to effectively perform two object renames in succession the way you are (i.e. move then CN change)

    Does it work if you don't do the CN change?
    What if you do the CN change first, followed by a PutOutControl and then the move.

    Also, you didn't answer my question about the possibility of using the built-in workflow Move activity.
Children
No Data