IF INGROUP(@domain+"\Students")
Use h: @LServer +"\Students$\"+@userID
Endif
IF INGROUP(@domain+"\Staff")
Use h: @LServer +"\Staff$\"+@userID
Endif
========================================
IF INGROUP("Students")
Use h: "\\DC01\Students$\%username%"
Endif
IF INGROUP("Staff")
Use h: "\\DC01\Staff$\%username%"
Endif
========================================
Trying to achieve the following
IF INGROUP(@domain+"\Students")
? "member of students...."
Use h: '\\DC01\Students$\' + @userID
If Not Exist("\\DC01\Students$\%username%")
? "Making home directory for Student...."
MD "\\DC01\Students$\%username%"
Endif
Endif
IF INGROUP(@domain+"\Staff")
? "member of Staff...."
Use h: '\\DC01\Staff$\' + @userID
If Not Exist("\\DC01\Staff$\%username%")
? "Making home directory for Staff...."
MD "\\DC01\Staff$\%username%"
Endif
Endif