Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

what is whole syntax of dsmove command to move all users from an ou to another ou ?

$
0
0

hi all,

i need the whole syntax of 2 commands ( one with only dsmove and another with dsmove piped in dsquery ) to move all users from an ou1, to another ou calld     "ou2" . please tell me 2 commands  

the above examples does not work for moving all users from an ou but works for a single user.

for example this command works :

dsmove cn=user1,ou=ou1,dc=mydmain,dc=com -newparent ou=ou2,dc=mydomain,dc=com

but the below commands don't work :

dsmove cn=*,ou=ou1,dc=mydmain,dc=com -newparent ou=ou2,dc=mydomain,dc=com

dsmove *,ou=ou1,dc=mydmain,dc=com -newparent ou=ou2,dc=mydomain,dc=com

dsquery user ou=ou1,dc=mydomain,dc=com -name * | dsmove -newparent ou=new-ou,dc=mydomain,dc=com

how sholud i select all users in these commands ?

and i need to know true commands

thanks in advance

 





Viewing all articles
Browse latest Browse all 31638

Trending Articles



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