I need to create a workflow to move an AD computer account from one OU to another at the end of my workflow. From another thread on here I think I need to use ActiveDirectory.rename() but I'm not sure of the syntax to use and I don't want to destroy active directory (the little help option doesn't name it 100% clear at least for me)
I believe the code below will do what I want but I don't know what to put where the ??? is:
var temp = ActiveDirectory.getComputerAD(vmName);
ActiveDirectory.rename(vmName.distinguishedName,???,"CN="+vmName+",OU=mynewou,OU=MyDivision,DC=MYDOMAIN,DC=COM");
Do I just put null and the function will ignore the rename part and try to do the move?
Thanks