#164217 - 2006-07-12 10:49 PM
ingroup() bug?
|
backermann
Fresh Scripter
Registered: 2006-01-13
Posts: 6
|
First post here so sorry in advance for properness or lack there of.. 
Here's my problem: I run a login script for everyone in our company and and map a few drives based on groups. Simple The first group (GRP_Jones-JI-APP-Hyperion) works fine with no problems (at least I haven't heard of any). The second group (GRP_Jones_ScanDocs-Users) works on some but not others. All with the same os (Windows XP) and not too many differences. Haven't dug too deep into the differences yet, but nothing obvious) So on the ones that don't work, if fails here (If InGroup("GRP_Jones_ScanDocs-Users")) with a @SERROR of "The system cannot find the file specified." Kixtart is ran of the server and called via a bat. I'm currently using 4.22. I tried the latetest version and even the beta version with the same results.
Any ideas?
Code snippet below of the one that works and the one that works on some and not on others ******
***************************************************************************************
If InGroup("GRP_Jones-JI-APP-Hyperion") If $Debug ? "========= Entering GRP_Jones-JI-APP-Hyperion Group =============" ? EndIf If @ERROR <> 0 ? "Error Checking Membership: " + @SERROR ? Else ? ? "Connecting Drive P to \\NETWIN1\JONES\JI\APPS\Hyperion. . ." If "$ForceMap" = "Y" If $Debug ? "Use P: /Delete /Persistent" EndIf Use "P:" /Delete /Persistent EndIf If $Debug ? "Use P: \\netwin1\hyperion$" EndIf Use "P:" "\\netwin1\hyperion$" $ResultCode = @Error $ResultString = @SError
If $ResultCode = 0 ? "The command completed successfully." ? ? $ExitCode = $ExitSuccess Else Beep ? "System error "+$ResultCode+" has occurred." ? ? $ResultString $=MessageBox("Failed to map the P Drive to \\netwin1\hyperion$" + Chr(13) + Chr(10) + "","Drive Mapping Failed!",48,5) $ExitCode = $ResultCode EndIf EndIf EndIf
If InGroup("GRP_Jones_ScanDocs-Users") If $Debug ? "========= Entering GRP_Jones_ScanDocs-Users Group =============" ? EndIf If @ERROR <> 0 ? "Error Checking Membership: " + @SERROR ? Else ? ? "Connecting Drive S to \\FTPSCAN\@USERID$. . ." If "$ForceMap" = "Y" If $Debug ? "Use S: /Delete /Persistent" EndIf Use "S:" /Delete /Persistent EndIf If $Debug ? "Use S: \\FTPSCAN\@USERID$" EndIf Use "S:" "\\FTPSCAN\@USERID$" $ResultCode = @Error $ResultString = @SError
If $ResultCode = 0 ? "The command completed successfully." ? ? $ExitCode = $ExitSuccess Else Beep ? "System error "+$ResultCode+" has occurred." ? ? $ResultString $=MessageBox("Failed to map the S Drive to \\FTPSCAN\@USERID$" + Chr(13) + Chr(10) + "","Drive Mapping Failed!",48,5) $ExitCode = $ResultCode EndIf EndIf EndIf
Error message here
*****************************************************************************
========= Entering GRP_Jones_ScanDocs-Users Group ============= Error Checking Membership: The system cannot find the file specified.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 675 anonymous users online.
|
|
|