#102675 - 2003-07-09 10:53 PM
path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]
I have two issues.
1. When rebooting a 98 machine, sometimes the group membership of a user is not detected during login. So, If I have an IF InGroup ("Testusers") and the user should be in the group, they aren't found in the group and therefore don't get the commands from inside the if statement. If I logoff and login again it works fine, but fails on the next reboot.
2. On 2000 machines I have the following line in the script: Set "PATH=\\servername\vend\pb6dll;\\servername\apps\accpac\ca_appsw"
If the user is a new user on the machine the path is not added. When the user logs in the next time it adds the path info. It seems that the path can't be added because a profile needs to be added onto that machine for the user first.
Any help with either of these issues would be appreciated.
Thanks,
Jason [ 09. July 2003, 23:06: Message edited by: sealeopard ]
|
|
Top
|
|
|
|
#102677 - 2003-07-10 09:51 AM
Re: path statement and group membership questions
|
jokerdog
Lurker
Registered: 2003-04-14
Posts: 1
Loc: Bradford, UK
|
With reference to question 1;
I had a similar situation when a Novell client was installed on the 98 machine. Do you have a Novell client installed?
Michael
_________________________
Trying is the first step towards failure. - Homer J Simpson
|
|
Top
|
|
|
|
#102678 - 2003-07-10 03:16 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
Yes, the Novell client is installed. We are in the process of migrating from Novell to AD. Did you find a workaround?
|
|
Top
|
|
|
|
#102680 - 2003-07-10 03:31 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
In regards to my second question. I told the script to run synchronously through GPO but that didn't help. There is still nothing added to the path the first time a user logs in a machine they haven't used before. It works fine for all subsequent logins.
|
|
Top
|
|
|
|
#102682 - 2003-07-10 03:47 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
4.2
|
|
Top
|
|
|
|
#102684 - 2003-07-10 04:02 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
4.20
|
|
Top
|
|
|
|
#102685 - 2003-07-10 04:07 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
In response to Lligetfa....sorry, I'm pretty new to Kix. I looked at the manual in the Ingroup area and didn't see anything about 9x having problems (other then the KixRPC service part, which I have running). You said provider needs to be switched. Novell needs to be the primary to avoid this issue? MS is the primary now.
|
|
Top
|
|
|
|
#102686 - 2003-07-10 04:14 PM
Re: path statement and group membership questions
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
Borrowing from the manual... quote: Known Problems of KiXtart on Windows 9x The following is a list of known issues that may be encountered when using KiXtart on Windows 9x: · If KiXtart is used on systems that are configured to run both Microsoft Networking client software and Novell Netware client software, compatibility issues can cause KiXtart to fail to retrieve network information and/or find any script. If these problems occur, make the following change in the registry of the affected clients:
HKEY_LOCAL_MACHINE System CurrentControlSet Services MSNP32 Network Provider CallOrder [00 00 00 40] >change to> [00 00 00 20] NOVELLNP Network Provider CallOrder [00 00 00 20] >change to> [00 00 00 40]
and then some code... code:
;;;;;;;;;;;;;;;;;;; Check the provider Order (for using INGROUP) ;;;;;;;;;;;;;;;;;;; :NPORDER
$MS = ReadValue("HKLM\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder") $NW = ReadValue("HKLM\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder")
if ($MS = "00000040") AND ($NW = "00000020") $MS = WriteValue("HKLM\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder", "00000020", "REG_BINARY") $NW = WriteValue("HKLM\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder", "00000040", "REG_BINARY") ;; Reboot the PC?? RUN "Rundll32.exe shell.dll,RestartDialog" ENDIF
YMMV
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.
|
|
Top
|
|
|
|
#102687 - 2003-07-10 04:14 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
I'm checking out the forums....I assume this is the fix you are referring to...I'll give it a try...
; ------ Check the provider Order (for using INGROUP) ----------------------------------------------------:NPORDER$MS = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder")$NW = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder")if ($MS = "00000040") AND ($NW = "00000020") $MS = WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder", "00000020", "REG_BINARY") $NW = WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder", "00000040", "REG_BINARY") ; --- Reboot the PC? --- RUN "Rundll32.exe shell.dll,RestartDialog"ENDIF; --------------------------------------------------------------------------------------------------------
|
|
Top
|
|
|
|
#102688 - 2003-07-10 05:12 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
Thanks for the help on both issues. It looks like everything is working now. The only problem I am having is with the rundll32 command that prompts for a reboot...I'm getting illegal operation errors sometimes, but it works others. I may just put in a pop up message box telling the user that they need to reboot if I can't get that part working.
|
|
Top
|
|
|
|
#102690 - 2003-07-10 05:28 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
I tried it with the Exit on the next line and that didn't work either. I even tried to go out to a DOS prompt after everything was loaded and just try the rundll from there to see if it would work. It seems to work about 50% of the time.
|
|
Top
|
|
|
|
#102693 - 2003-07-10 10:00 PM
Re: path statement and group membership questions
|
christjj
Fresh Scripter
Registered: 2003-07-09
Posts: 12
Loc: PA
|
Thanks to everyone for your help. It looks like this version of the restart is working for me:
Run "RUNDLL32 SHELL32.DLL,SHExitWindowsEx 2"
I'm running it against a test group when they log in tomorrow morning, so we'll see how it goes.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1635 anonymous users online.
|
|
|