Page 1 of 1 1
Topic Options
#14192 - 2001-11-13 12:46 AM Map a users home drive...
BroWniE Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 20
All,

Is there a way to map a users home drive within kixtart and designate it the home drive..? If possible I prefer to do this within Kixtart and not shell out the Net command...
"NET USE {devicename | *} [password | *] /HOME"
thanks
Larry

Top
#14193 - 2001-11-13 08:05 AM Re: Map a users home drive...
Kdyer Offline
KiX Supporter
*****

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

In the Manual, please have a look at pp 36-37 and this will show you the proper syntax of how to do this.

- Kent

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

Top
#14194 - 2001-11-13 06:20 PM Re: Map a users home drive...
BroWniE Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 20
Only one problem with this way.. we currently assign home drives via Global Groups..IE if you are in texas group you have a home drive on dallas server.... So I need a way to designate a drive as the home drive... any ideas?

thanks
Larry

Top
#14195 - 2001-11-13 06:24 PM Re: Map a users home drive...
Anonymous
Unregistered


The latest version of Kixtart doesn't make the difference between local and global groups.

Does that help you?

Top
#14196 - 2001-11-13 11:20 PM Re: Map a users home drive...
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Indeed something has changed about global and local groups between
the kixtart 3.x and 4.x releases.
With following code it will not a problem:

code:

IF (Ingroup("Admin") <> 0)
? "Member of group ADMIN"
ELSE
? "No member of group ADMIN"
ENDIF


Mostly it isn't important which type of group it is. Mostly we want to know
"is this user a member of specified group".
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#14197 - 2001-11-14 01:56 AM Re: Map a users home drive...
BroWniE Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 20
I am actually looking to specify a drive as my "home drive".. So when I save something it will automatically default to that drive location.... Sorry for not being clear...

thanks
Larry

Top
#14198 - 2001-11-14 02:37 AM Re: Map a users home drive...
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
Larry -
I not sure you can specifically perform this with your script.

The HOMEDRIVE, HOMESHARE and HOMEPATH values are defined within the Users domain profile. Simply trying a SET command from the command prompt will not change these (at least not in my quick tests).

However, you could try mapping a drive letter to a specific folder, then changing the "HKEY_CURRENT_USER\Environment, HOMEDRIVE" value to reflect this new letter (at least within WinNT/2K systems).

However, even if this change works, it is really a kludgy method. If yours HOME directories are not the proper storage location for files from an application, you should check the registry values for that application to see if you can reset the default save location within KiX.

For example, in Win2K change the "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders, Personal" to have the default storage locations for "My Documents" be something other than the Offices' default.

Lastly, if your users HOME values are incorrect they are more properly set within User Manager or some script to automatically update the values on the DC, not on the client.

Bill

Top
#14199 - 2001-11-14 03:35 AM Re: Map a users home drive...
BroWniE Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 20
Thanks for the reply.. Gives me something to think about..

Larry

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

Generated in 0.057 seconds in which 0.027 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