#29465 - 2002-09-23 11:00 PM
Drive Mappings - XP, etc
|
sasifras
Fresh Scripter
Registered: 2002-09-23
Posts: 16
|
I'm a bit confused. I've been lurking around this board for a week or so trying to find out how to deal with this on my own and can't seem to find the right answer. I have a test bed, 1 DC (2K) and a bunch of workstations (XP only). I've installed Kix on the DC and added the needing things the AD section to kick off the script. When I try and login, first it takes forever (20-35 seconds versus non-script logins of 1-2 seconds). Second, my objective (drive mappings) don't work. I tried to add a tad of code to display this information better for me to see what was going on but the jist of it is that the INGROUP doesn't seem to understand the groups the user is really a part of.
User: X1 Groups In: Test1, Test2, and Test3
Script:
code:
;Make the window appear IF @dos = 5.0 $HKLMS = 'HKEY_LOCAL_MACHINE\SOFTWARE' IF 1 <> ReadValue($hklms+"\Microsoft\Windows NT\CurrentVersion\Winlogon", "RunLogonScriptSync") $ = WriteValue ($hklms+"\Microsoft\Windows NT\CurrentVersion\Winlog on", "RunLogonScriptSync", "1", "REG_DWORD") ENDIF ENDIF
;Clear all possible network drive mappings
use M: /d use N: /d use O: /d use P: /d use Q: /d use R: /d use S: /d use T: /d use U: /d use V: /d use W: /d use X: /d use Y: /d use Z: /d
IF InGroup("Test1") ? "Mapping X:" use X: \\dusty\1 If @error = 0 ? " Mapping of drive X Successful" ELSE ? " Error mapping drive X to \\Dusty\1" ENDIF ELSE ? " Not in Test1" ENDIF
IF InGroup("Test2") ? "Mapping X:" use Y: \\dusty\2 If @error = 0 ? " Mapping of drive Y Successful" ELSE ? " Error mapping drive Y to \\Dusty\2" ENDIF ELSE ? " Not in Test2" ENDIF IF InGroup("Test3") ? "Mapping Z:" use Z: \\dusty\3 If @error = 0 ? " Mapping of drive Z Successful" ELSE ? " Error mapping drive Z to \\Dusty\3" ENDIF ELSE ? " Not in Test3" ENDIF
Color y+/n At (23,32) "<any key to continue>" Get $x
What I end up with is Not in Test1, etc etc for all the groups when the user IS in those groups. Also, I tried running the kix.kix that came with kixtart (sample) to see what groups the user was supposed to be in and even that doesn't show the right memberships - but I can manually map a drive which could only be done if this user was in that group! I am logging into the DC and I'm not sure what else to do. HELP!
_________________________
Thanks,
Sasifras
|
|
Top
|
|
|
|
Drive Mappings - XP, etc
|
sasifras
|
2002-09-23 11:00 PM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-09-24 12:45 AM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-24 01:17 AM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-09-24 01:37 AM
|
Re: Drive Mappings - XP, etc
|
Les
|
2002-09-24 03:58 AM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-25 12:58 AM
|
Re: Drive Mappings - XP, etc
|
Les
|
2002-09-25 02:45 AM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-25 11:26 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-27 10:32 PM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-09-27 11:04 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-27 11:36 PM
|
Re: Drive Mappings - XP, etc
|
Howard Bullock
|
2002-09-27 11:43 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-27 11:45 PM
|
Re: Drive Mappings - XP, etc
|
BrianTX
|
2002-09-27 11:46 PM
|
Re: Drive Mappings - XP, etc
|
Howard Bullock
|
2002-09-27 11:52 PM
|
Re: Drive Mappings - XP, etc
|
kholm
|
2002-09-27 11:58 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-28 12:30 AM
|
Re: Drive Mappings - XP, etc
|
Les
|
2002-09-28 01:31 AM
|
Re: Drive Mappings - XP, etc
|
Sverre
|
2002-09-30 12:57 AM
|
Re: Drive Mappings - XP, etc
|
Fernando Madruga
|
2002-09-29 03:50 PM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-09-29 04:49 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-29 09:01 PM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-09-29 09:17 PM
|
Re: Drive Mappings - XP, etc
|
Chris Jorgan
|
2002-09-30 03:33 AM
|
Re: Drive Mappings - XP, etc
|
Fernando Madruga
|
2002-09-30 04:22 AM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-09-30 10:53 PM
|
Re: Drive Mappings - XP, etc
|
BrianTX
|
2002-09-30 11:32 PM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-09-30 11:49 PM
|
Re: Drive Mappings - XP, etc
|
BrianTX
|
2002-09-30 11:56 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-01 12:07 AM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-10-01 03:01 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-01 11:59 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-02 01:21 AM
|
Re: Drive Mappings - XP, etc
|
Howard Bullock
|
2002-10-02 01:33 AM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-02 03:58 AM
|
Re: Drive Mappings - XP, etc
|
Howard Bullock
|
2002-10-02 04:10 AM
|
Re: Drive Mappings - XP, etc
|
surfkat
|
2002-10-02 10:38 AM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-10-02 02:59 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-02 10:37 PM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-10-02 11:25 PM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-10-02 11:29 PM
|
Re: Drive Mappings - XP, etc
|
sasifras
|
2002-10-03 10:45 PM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-10-03 11:00 PM
|
Re: Drive Mappings - XP, etc
|
BrianTX
|
2002-10-04 03:11 PM
|
Re: Drive Mappings - XP, etc
|
jbastete
|
2002-10-31 08:01 AM
|
Re: Drive Mappings - XP, etc
|
Lonkero
|
2002-10-31 08:05 AM
|
Re: Drive Mappings - XP, etc
|
jbastete
|
2002-10-31 08:26 AM
|
Re: Drive Mappings - XP, etc
|
jbastete
|
2002-10-31 08:06 PM
|
Re: Drive Mappings - XP, etc
|
Sealeopard
|
2002-10-31 08:38 PM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 657 anonymous users online.
|
|
|