Page 1 of 1 1
Topic Options
#16867 - 2002-01-30 03:34 PM KiXtart-script for mapping HOMEDRIVE/HOMEPATH
jimmyo Offline
Lurker

Registered: 2002-01-30
Posts: 2
Loc: Germany
Hi,
Please I shall be very grateful for any help. Uptil now very unsuccessful.
I am using Kixtart V4.02 and have WindowsNT and Windows2000 environment.Users do not have any home directory defined in Usermanager. I need a KiXtart script which is run when users logon to a terminal server.
This logon-script should always define or set the the same HOMEDRIVE and HOMEPATH to the same values irrespective on which server users logon,i.e. if users logon to serverA, the HOMEDRIVE should be defined to
HOMEDRIVE=J and
HOMEPATH=\
I was thinking maybe one could also write a script which addtionally defines HOMEDRIVE=J and HOMEPATH=\ in the HKEY_CURRENT_USER registry.
I tried this, but it is not working:-
LOGON.SCR
+++++++++
$fileserver="SERVERA"
shell "$L HOMEDRIVE=J:"
shell "$L HOMEPATH=\"
setl "HOMEDRIVE=J:"
setl "HOMEPATH=\"

I am using only the executable c:\winnt\system32\kix32.exe on each terminal server. I am not using kixrpc.
Unfortuantely script is not working.
Or how can I also write a kixstart to define the homedrive and homepath in HKEY_CURRENT_USER by logon.

Thanks indeed for the great help in advance.!
JIm

_________________________
God is Great.!

Top
#16868 - 2002-01-30 03:47 PM Re: KiXtart-script for mapping HOMEDRIVE/HOMEPATH
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jim,

Welcome to the board!

Have you looked at the following Macro for Kix?

quote:

@HOMESHR Server and share name part of home directory

So.. If we take your code we can just simply change it around to be..

code:

USE J: @HOMESHR ; connect to user's home share

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#16869 - 2002-01-30 07:59 PM Re: KiXtart-script for mapping HOMEDRIVE/HOMEPATH
jimmyo Offline
Lurker

Registered: 2002-01-30
Posts: 2
Loc: Germany
Hi Kent,
Users do not have homeshares for particular reasons. We want see when users have logged to the maschine and when at the command promt we do set> to see:-
HOMEDRIVE= J:
HOMEPATH=\

i.e. to override the system defined HOMEDRIVE and HOMEPATH by defining user-defined HOMEDRIVE=J: and HOMEPATH=\

Regarding your answer, does it mean after user is logged that at the command prompt HOMEDRIVE and HOMEPATH would be J: and \.

THanks indeed.
JIm

_________________________
God is Great.!

Top
#16870 - 2002-01-31 04:39 PM Re: KiXtart-script for mapping HOMEDRIVE/HOMEPATH
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
jimmmyo,

I went back and re-read your original post. My bad..

code:

;EXISTKEY - LOOK TO SEE IF THE REGISTRY KEY EXISTS
$Returncode = ExistKey("HKEY_CURRENT_USER\Network\J")
If $ReturnCode <> 0
;PERSISTENT WRITES THIS TO REGISTRY AND MAKES THE J: DRIVE PERMANENT
USE J: "\\SERVER\@USERID" /PERSISTENT
ENDIF

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.133 seconds in which 0.097 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