Page 1 of 1 1
Topic Options
#170795 - 2006-11-29 12:05 AM Logon script and Vista RTM
BoDuke Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 5
We have a kix script that runs on our Windows XP machines just fine. It maps printers and drives based on group memberships. When I tried to run the script on Vista I never got the printers or drives mapped. The weird thing is that when I review the script log for that logon instance it shows that the drivers mapped successfully, yet I do not see any drives in Windows Explorer. I was thinking it could be related to UAC but I haven't turned it off yet to test (I also would prefer to leave it on if I can).

Any help will be very much appreciated.

Top
#170797 - 2006-11-29 12:36 AM Re: Logon script and Vista RTM [Re: BoDuke]
BoDuke Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 5
Just an update....

When I turned UAC off the mapped drives showed up. Also, the printers are mapping fine with UAC on or off now that I fixed the @ProductType option to reference the correct Vista version I am running.

I still would prefer to leave UAC on so if someone has some suggestions on how to get the mapped drives to show up with it on I would still like to hear it.

Top
#170805 - 2006-11-29 04:25 AM Re: Logon script and Vista RTM [Re: BoDuke]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
That sounds more like a Vista/UAC issue. What happens if you utilize a "NET USE X: \\server\share" from the command line? Does this work?
_________________________
There are two types of vessels, submarines and targets.

Top
#170883 - 2006-12-01 10:56 AM Re: Logon script and Vista RTM [Re: Sealeopard]
Poltergeist Offline
Lurker

Registered: 2006-09-14
Posts: 4
The strange thing is that if the script is run manually, it works. Even if UAC is not turned off...
Top
#170902 - 2006-12-01 07:48 PM Re: Logon script and Vista RTM [Re: Poltergeist]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
it might have something to do with the fact that kixtart runs before explorer.exe
UAC is based on running explorer.exe under another security token, thus your original maps from your real token do not get mapped.

does this only affect ppl with administrative rights?
_________________________
!

download KiXnet

Top
#170924 - 2006-12-01 11:45 PM Re: Logon script and Vista RTM [Re: Lonkero]
BoDuke Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 5
no it affects normal users as well.

Why would kix run any differently than a standard batch file? A standard batch file set as a logon script does map the drives fine and they show up in Explorer. When kix tries to do it they don't, yet kix thinks everything ran fine.

Top
#170925 - 2006-12-01 11:48 PM Re: Logon script and Vista RTM [Re: Poltergeist]
BoDuke Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 5
RE: Poltergeist

Well the script runs with UAC on, but the mapped drives just don't show up in Windows Explorer. The printers do show up though which is weird. The mapped drives only show up when UAC is turned off.

Top
#170926 - 2006-12-01 11:56 PM Re: Logon script and Vista RTM [Re: BoDuke]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4548
Loc: USA
Unfortunately, this may be a slow thread to be answered as I doubt many of us have Vista yet. (and I know Jooel, who will forever hate upgrading to the next OS, will not be much help either. ;\) )

As soon as I get my copy I will give it try if no solution has been found by that time.

Top
#170928 - 2006-12-02 12:05 AM Re: Logon script and Vista RTM [Re: Lonkero]
BoDuke Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 5
Actually I need to correct a previous statement. When I tested it further, the problem seems to only affect administrative users. When I logged in with a normal user I did get the printers and the drives mapped successfully even with UAC on.
Top
#170929 - 2006-12-02 02:02 AM Re: Logon script and Vista RTM [Re: BoDuke]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol. I guessed right.
just to note, printer connections are not tied to explorer.exe thus it's understandable why this does not affect their mappings.

btw allen, I got my copy already...
_________________________
!

download KiXnet

Top
#175786 - 2007-04-28 06:40 PM Re: Logon script and Vista RTM [Re: Lonkero]
GAMBIT Offline
Lurker

Registered: 2007-04-28
Posts: 2
I have just rolled over 45 PC's to vista, the login script is working for the most part. I am getting a DOS prompt asking me to choose file or Directory? Has anyone herd of this and wht would be the fix for it?
Top
#175787 - 2007-04-28 06:43 PM Re: Logon script and Vista RTM [Re: GAMBIT]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It sounds like you have an ambiguous copy command.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#194505 - 2009-06-30 05:15 PM Re: Logon script and Vista RTM [Re: BoDuke]
munrobasher Offline
Just in Town

Registered: 2009-06-30
Posts: 3
Loc: Cheshire
 Originally Posted By: BoDuke
Actually I need to correct a previous statement. When I tested it further, the problem seems to only affect administrative users. When I logged in with a normal user I did get the printers and the drives mapped successfully even with UAC on.


Digging this thread up, we've got the same issue. If local admin rights are granted, the "use" command works (and running net use in the script with a pause shows the drives) but they are not mapped after the script finishes. For non-admin users, they map fine.

Madness!!

Cheers, Rob.

Top
#194812 - 2009-07-15 08:55 PM Re: Logon script and Vista RTM [Re: munrobasher]
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Have you tried this?

 Code:
IF $VISTA32="YES" OR $VISTA64="YES"
 $NETWORKKEY='$HKLM\$SMWCV\Policies\System'
	
 IF Not KeyExist($NETWORKKEY)
  $=AddKey($NETWORKKEY)
  $=WriteValue $NETWORKKEY,"EnableLinkedConnections","00000001",REG_DWORD)
 ELSE
  $=WriteValue($NETWORKKEY,"EnableLinkedConnections","00000001",REG_DWORD)
 ENDIF
ENDIF

Top
Page 1 of 1 1


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

Who's Online
0 registered and 486 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

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