I have tryed what you have sugested and i have put in

Code:
 
if inContainer("ou=Users,ou=Information Technology,OU=Dublin,dc=lab,dc=iconcr,dc=com","User")

USE K: "\\shortts\DATA\Department\SO-Storage-IR"

endif



but im getting ERROR: expected expresion could it be my distinguished name and if so what the best way to find out or test if it the right distinguished name im pritty sure it is but i could be missing smothing Stupid

cheers