#170795 - 2006-11-29 12:05 AM
Logon script and Vista RTM
|
BoDuke
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
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
|
|
|
|
#170883 - 2006-12-01 10:56 AM
Re: Logon script and Vista RTM
[Re: Sealeopard]
|
Poltergeist
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
|
|
|
|
#170924 - 2006-12-01 11:45 PM
Re: Logon script and Vista RTM
[Re: Lonkero]
|
BoDuke
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
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
KiX Supporter
Registered: 2003-04-19
Posts: 4549
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
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
|
|
|
|
#175786 - 2007-04-28 06:40 PM
Re: Logon script and Vista RTM
[Re: Lonkero]
|
GAMBIT
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
|
|
|
|
#194505 - 2009-06-30 05:15 PM
Re: Logon script and Vista RTM
[Re: BoDuke]
|
munrobasher
Just in Town
Registered: 2009-06-30
Posts: 3
Loc: Cheshire
|
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
Starting to like KiXtart
Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
|
Have you tried this?
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
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 496 anonymous users online.
|
|
|