Page 1 of 1 1
Topic Options
#102675 - 2003-07-09 10:53 PM path statement and group membership questions
christjj Offline
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
#102676 - 2003-07-09 11:05 PM Re: path statement and group membership questions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read the FAQ Forum under W2k/XP - Keep the Window visible on login? and implement the registry key. This should fix the second problem.
_________________________
There are two types of vessels, submarines and targets.

Top
#102677 - 2003-07-10 09:51 AM Re: path statement and group membership questions
jokerdog Offline
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 Offline
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
#102679 - 2003-07-10 03:18 PM Re: path statement and group membership questions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The solution is in the manual and has been posted many times on the board. You need to swap provider order.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#102680 - 2003-07-10 03:31 PM Re: path statement and group membership questions
christjj Offline
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
#102681 - 2003-07-10 03:40 PM Re: path statement and group membership questions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what was your kixtart version?
_________________________
!

download KiXnet

Top
#102682 - 2003-07-10 03:47 PM Re: path statement and group membership questions
christjj Offline
Fresh Scripter

Registered: 2003-07-09
Posts: 12
Loc: PA
4.2
Top
#102683 - 2003-07-10 03:52 PM Re: path statement and group membership questions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you mean 4.02 or 4.20?
_________________________
!

download KiXnet

Top
#102684 - 2003-07-10 04:02 PM Re: path statement and group membership questions
christjj Offline
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 Offline
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 Offline
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 Offline
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 Offline
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
#102689 - 2003-07-10 05:24 PM Re: path statement and group membership questions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if you want to get rid of that.
just put directly after the run statement:
exit 0

that speeds up the exit of the script so much that you should get rid of the problem.
_________________________
!

download KiXnet

Top
#102690 - 2003-07-10 05:28 PM Re: path statement and group membership questions
christjj Offline
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
#102691 - 2003-07-10 07:20 PM Re: path statement and group membership questions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
LOL

That was why I said YMMV. [Big Grin]

There is a FAQ on shutdown issues that may help. Not an exact science on Wintendos unfortunately. In my shop, back when I had Wintendos, they were all identical clones so that one worked for me.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#102692 - 2003-07-10 09:48 PM Re: path statement and group membership questions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
instead of restart dialog you could use ExitWindows.
or instead of run, shell.
_________________________
!

download KiXnet

Top
#102693 - 2003-07-10 10:00 PM Re: path statement and group membership questions
christjj Offline
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
#102694 - 2003-07-10 10:17 PM Re: path statement and group membership questions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just remember to say in case of errors:
"I don't know what has happened.
maybe a virus, I will have to investigate" [Big Grin]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.072 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org