Hi

As a followup from a recent post "if ingroup Windows 2008 R2" I'm wondering if I jumped the gun a little that although printing is now working via if ingroup , I'm now having problems with simple drive mappings....

After trying various methods I'm hoping someone can point out what I am doing wrong or if there is a fix ?

Both Students and Staff groups are global AD groups and no I have no GPO and no UAC running
Also I am using kix 4.62 on a Windows 2003 server with an XP machine client for testing, I'm yet to try Win 7 . As I also had the same issue running this over a Windows 2008 Domain earlier today

Any help would be appreciated , thanks

 Code:
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 


Edited by Mart (2012-05-09 02:27 PM)
Edit Reason: Please use code tags when posting code.