I have a script that creates groups. I need to bind these groups to different OUs under different levels in the tree.
How can my script pass the OU dynamically to this line
Currently I have hard coded the OU where I want to create the group in, but this is not flexible enough. I will pass the OU from the same csv file that I am reading the groups from.
Any help would be appreciated.
Thanks.
How can my script pass the OU dynamically to this line
Code:
Set objOU = GetObject("LDAP://ou=FH2,dc=dylan,dc=local")
Currently I have hard coded the OU where I want to create the group in, but this is not flexible enough. I will pass the OU from the same csv file that I am reading the groups from.
Any help would be appreciated.
Thanks.