Page 1 of 1 1
Topic Options
#131782 - 2004-12-24 12:38 PM first login with kix script gets disconnected drives
Sephiroth Offline
Fresh Scripter

Registered: 2004-12-24
Posts: 6
Hey ....

I've got the following situation:
an win2000 server as domain controller.

i've made an kix login script to give drive mappings based on group membership.

here's a short quote from the script :

Quote:


;DELETE ALL DRIVERMAPPINGS

use q: /DELETE /PERSISTENT
etc etc ...

IF (INGROUP("Administrators")=1) or (INGROUP("Domain Admins")=1) or (INGROUP("Ontwikkeling")=1) or (INGROUP("Helpdesk")=1)
use f: \\xxxxx\xxxxx
@error
ENDIF





I've done the script for each mapping like above...

Now i've got the following problem:
on some clients i've got disconnected drive's when i first login after booting the system (or rebooting).
when i click on an connected drive all drives get connected.
Also after logging out and logging in again, all drives are connected perfectly.

This problem is just on some clients (2000 or XP) but it's working perfectly on most of 2000 / XP clients.

also the @error gives only "0" , so the script is (in my opinion) working perfect.
Can anybody tell me what is going wrong ?

Top
#131783 - 2004-12-24 12:49 PM Re: first login with kix script gets disconnected drives
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
nothing is wrong

ignore the disconnected status, it will function correctly when accessed

It is a MS issuue, not a kix issue
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#131784 - 2004-12-24 12:59 PM Re: first login with kix script gets disconnected drives
Sephiroth Offline
Fresh Scripter

Registered: 2004-12-24
Posts: 6
Quote:

nothing is wrong

ignore the disconnected status, it will function correctly when accessed

It is a MS issuue, not a kix issue



The problem is when i've got 8 disconnected drives, there is only 1 or 2 accessible.
the other ones give an error, they get available when i've clicked an drive that is connected.

So the problem when an user logs in and outlook is started automatically and he wants to open his .pst file he gets an error because his mapping is not available.
The user has to click on an connected drive before his pst is available .

The weirdest thing of all is that it works perfect on 95% of the clients, only a few has these problems


Edited by Sephiroth (2004-12-24 01:00 PM)

Top
#131785 - 2004-12-24 01:02 PM Re: first login with kix script gets disconnected drives
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Is it certian clients that have this problem? what are there OS's?
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#131786 - 2004-12-24 01:09 PM Re: first login with kix script gets disconnected drives
Sephiroth Offline
Fresh Scripter

Registered: 2004-12-24
Posts: 6
the clients who use the script are 2000 / xp clients.
About 10 clients use the script.
3 clients (both xp/2000) have the problems, the others don't

Top
#131787 - 2004-12-24 04:42 PM Re: first login with kix script gets disconnected drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
First off, you don't need to OR all those separate InGroup() functions unless you have an old version of KiX. KiX now supports passing multiple groupnames to one InGroup() function.

As for your disconnected drives, try setting the GPO RunLogonScriptSync to hold back the desktop until the script finishes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#131788 - 2004-12-24 05:14 PM Re: first login with kix script gets disconnected drives
Anonymous
Unregistered


tnx for that info ....
i also tried that gpo setting,
then i see the script loading before going to desktop
but it doesn't result in connected mappings

Top
#131789 - 2004-12-24 05:24 PM Re: first login with kix script gets disconnected drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Do the clients have any other providers and/or protocols that may need to be optimized? What version of KiX? You could try SHELLing to NET USE if necessary.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#131790 - 2004-12-26 08:58 AM Re: first login with kix script gets disconnected drives
Sephiroth Offline
Fresh Scripter

Registered: 2004-12-24
Posts: 6
No, the clients don't use any other protocol.

But when i'm going to use shell -> net use, then i can't use the ingroup function isn't it ?

Top
#131791 - 2004-12-26 06:12 PM Re: first login with kix script gets disconnected drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
How would that negate the use of InGroup()?
Code:

If InGroup('Administrators','Domain Admins','Ontwikkeling','Helpdesk')
Use F: /delete /persistent
Shell 'NET USE F: \\server\share /PERSISTENT:NO'
EndIf

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#131792 - 2004-12-27 09:33 AM Re: first login with kix script gets disconnected drives
Sephiroth Offline
Fresh Scripter

Registered: 2004-12-24
Posts: 6
Quote:

How would that negate the use of InGroup()?
Code:

If InGroup('Administrators','Domain Admins','Ontwikkeling','Helpdesk')
Use F: /delete /persistent
Shell 'NET USE F: \\server\share /PERSISTENT:NO'
EndIf






tnx! i'm going to try this ...

[edit]
I have tried it, but it doesn't matter
[/edit]


Edited by Sephiroth (2004-12-27 01:55 PM)

Top
#131793 - 2004-12-27 04:52 PM Re: first login with kix script gets disconnected drives
Les Offline
KiX Master
*****

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

I have tried it, but it doesn't matter



That proves then that the problem lies with the workstations and not KiX.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1183 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.079 seconds in which 0.038 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