Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

move AD computer account to new OU

$
0
0

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


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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