Page 1 of 1 1
Topic Options
#204406 - 2012-03-02 08:58 PM @homedrive and @homepath
tbarron Offline
Just in Town

Registered: 2012-02-28
Posts: 3
Loc: BC, Canada
Hello
I'm trying to use the @homedrive and @homedir macros but they don't return anything. In other words they come up blank when I use them in my active directory login script. The same is true if I use the Windows environment variables %HOMEDRIVE% and %HOMEPATH%. All the other macros I've tried are fine. Any suggestions?
Thanks

Top
#204407 - 2012-03-02 09:25 PM Re: @homedrive and @homepath [Re: tbarron]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
Welcome to KORG!

Silly question - are the values defined in the user's AD profile?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#204408 - 2012-03-02 10:34 PM Re: @homedrive and @homepath [Re: Glenn Barnas]
tbarron Offline
Just in Town

Registered: 2012-02-28
Posts: 3
Loc: BC, Canada
Hi Glenn

Not specifically.

Here's what I want to do: We have several branch offices. The login script determines the branch by the 3rd octet of the ip address. So far so good. From there I want to place a certain shortcut on the windows desktop of all the pc's at just certain branches. The users don't have rights to place the shortcut on the All Users desktop so it has to be placed on their personal desktop..ie. c:\documents and settings\username\desktop. Initally all worked well by using that path and replacing just the username with @userid. But we noticed last week that if an active directory user has their name changed, for example because of marriage or divorce, their documents and settings folder retains the old name on a pc that they have logged into at least once prior to their change of name. So I want to use the @homedrive and @homedir macros to take care taht situation.

Top
#204409 - 2012-03-02 10:43 PM Re: @homedrive and @homepath [Re: tbarron]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Why not just use %USERPROFILE%\Desktop instead?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#204410 - 2012-03-02 10:51 PM Re: @homedrive and @homepath [Re: Les]
tbarron Offline
Just in Town

Registered: 2012-02-28
Posts: 3
Loc: BC, Canada
Perfect. It works. Thanks very much.
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 1336 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.249 seconds in which 0.174 seconds were spent on a total of 13 queries. Zlib compression enabled.

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