Posts

Showing posts from November, 2019

[SCRIPT] Batch move user OU for samba 4

Provide a list of user's sAMAccountName in a file and DN of  OU (organizational unit).
Here's the example of running the script:

bash batchMoveSambaOU.sh /tmp/userList.txt "ou=IT,dc=mochtar,dc=net"