I have a windows 2003 R2 server running Kix 2001. I Place wkix32 and loginscript.cmd in the netlogon dir. Under user properties profile-loginscript I enter in loginscript.cmd-->(start "LogonScript" /min /B wkix32 logonscript.kix /i)
I am trying to map printers by group but it will not work. example:
IF INGROUP ("OKIC5200-SERVICE1") ADDPRINTERCONNECTION ("\\al-winslow\OKI-C5200N-SERVICE1") ENDIF
For some strange reason it will not work. The drive mappings work fine, but they are not done by group. Does anyone have any ideas? Should I use the latest version of Kix???
Thanks for the advice. Here is what I found. When I run the script with the addprinterconnection without using if ingroup it maps the printer just fine. Is there a problem with group names like this: OKIC5200-RECON ??
The groups are new they were just created. I have a windows 2003 R2 server. I inserted the new server into an existing W2K domain (did adprep). Don't think that should be an issue. I am not sure how to check the users group token cache??
Thank you for quick responses. I checked the token cache and it showed the correct groups. I also did a gpresult and that showed the user was in the correct groups. As I said it something group related, because it works without IF INGROUP?? I am stumped..
Just tried that and no luck. I did add all my printers to the main login script withou the groups just to make sure they would map and they did. They all mapped. I don't get this, because I have always used kix scripts to map my printers by group and it always works. This is very puzzling to me...
IF INGROUP ("WISETRACK") use M: "\\VOORHEES-SERVER\PUBLIC" use U: "\\SERVER_SOUTH\SHARE" use K: "\\SERVER_NORTH\SHARE" use L: "\\LAKEWOOD-SERVER\SHARE" ENDIF
IF INGROUP ("HP4250-RECON") ADDPRINTERCONNECTION ("\\AL-WINSLOW\HP-4250-RECON") ;SetDefaultPrinter ("\\AL-WINSLOW\HP-4250-RECON") ENDIF
IF INGROUP ("OKIC5200-RECON") ADDPRINTERCONNECTION ("\\AL-WINSLOW\OKI-C5200N-RECON") ENDIF
Here is the code. PLease let me know if you see anything that would cause me a problem with the ADDPRINTERCONNECTION statements. The users are in there groups respective groups.
Code:
SETTIME "\\AL-WINSLOW"
; *********************** COMMON NETWORK DRIVE MAPPING FOR ALL USERS **************
USE Y: /delete USE Y: "\\AL-WINSLOW\SHARE" USE S: /delete USE S: "\\AL-WINSLOW\SHARE" USE P: /delete USE P: "\\AL-WINSLOW\AUTOLENDERS" USE O: /delete USE O: "\\AL-WINSLOW\HPSCAN"
; ************************END OF DRIVE MAPPING FOR ALL USERS***********************
; ************************DRIVE MAPPING FOR BUSINESS GROUPS************************
IF INGROUP ("WISETRACK") use M: "\\VOORHEES-SERVER\PUBLIC" use U: "\\SERVER_SOUTH\SHARE" use K: "\\SERVER_NORTH\SHARE" use L: "\\LAKEWOOD-SERVER\SHARE" ENDIF
IF INGROUP ("HP4250-RECON") ADDPRINTERCONNECTION ("\\AL-WINSLOW\HP-4250-RECON") ;SetDefaultPrinter ("\\AL-WINSLOW\HP-4250-RECON") ENDIF
IF INGROUP ("OKIC5200-RECON") ADDPRINTERCONNECTION ("\\AL-WINSLOW\OKI-C5200N-RECON") ENDIF
IF INGROUP ("HP4345-ADMIN") ADDPRINTERCONNECTION ("\\AL-WINSLOW\HP-4345MFP-2NDFLOOR") END IF
IF INGROUP ("OKIC5200-SERVICE1") AddPrinterConnection ("\\al-winslow\OKI-C5200N-SERVICE1") END IF
IF INGROUP ("OKIC5200-SERVICE2") ADDPRINTERCONNECTION ("\\al-winslow\oki-c5200n-service2") END IF
IF INGROUP ("DELLW5300-INVENTORY") ADDPRINTERCONNECTION ("\\AL-WINSLOW\DELL-W5300-INVENTORY") ;SetDefaultPrinter ("\\AL-WINSLOW\DELL-W5300-INVENTORY") END IF
IF INGROUP ("all_prn") ADDPRINTERCONNECTION ("\\al-winslow\DELL-W5300-INVENTORY") ADDPRINTERCONNECTION ("\\AL-WINSLOW\OKI-C5200N-SERVICE1") ADDPRINTERCONNECTION ("\\AL-WINSLOW\OKI-C5200N-SERVICE2") ADDPRINTERCONNECTION ("\\AL-WINSLOW\HP-4345MFP-2NDFLOOR") ADDPRINTERCONNECTION ("\\AL-WINSLOW\OKI-C5200N-RECON") ADDPRINTERCONNECTION ("\\AL-WINSLOW\HP-4250-RECON") END IF
; ************************************************ END ****************************