Page 1 of 1 1
Topic Options
#192197 - 2009-02-12 05:23 PM USE command not mapping drives in logon script Vista 64
DWhitehurst Offline
Just in Town

Registered: 2009-02-10
Posts: 4
Loc: Plano, Texas
I am deploying Vista64 and have a kix logon script. When a user logs on the script runs but does not map drives. What is wierd is that if you manually run the script after they logon it will map the drives.

USE X: "\\$SITEFS1\corp"
USE Y: "\\$SITEFS1\data"

I have displayed the error codes and it returns a 0 but no mapped drive.
seems to work fine on Vista32 and XP It also works most of the time logged on as a domain admin. I have tried version 4.6 and 4.53
Any suggestions? Anyone else come across this?

If i use a net use command in the script it will map correctly too
I would just prefer using the Kix command

Top
#192202 - 2009-02-12 07:11 PM Re: USE command not mapping drives in logon script Vista 64 [Re: DWhitehurst]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
About 70% of my workstation environment is x64 w/ Vista and I haven't run into the problem. I can run a simple test when I get back to the office later today and tell you what I find.

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

Top
#192203 - 2009-02-12 07:18 PM Re: USE command not mapping drives in logon script Vista 64 [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Actually, just jumped on the VPN and RDP'd to my x64 system. The following simple code:
 Code:
use T: '\\server\share'
@ERROR ' / ' @SERROR ?

reported success and the drive mapped. I'm running Vista Business x64 with SP1 and most current updates. Kix version is 4.60.

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

Top
#192206 - 2009-02-12 08:06 PM Re: USE command not mapping drives in logon script Vista 64 [Re: DWhitehurst]
DWhitehurst Offline
Just in Town

Registered: 2009-02-10
Posts: 4
Loc: Plano, Texas
The problem only occurs running the logon with the group policy. If after I log on as the user I run the logon script it will map all of the drives correctly! Thanks for replying!
Top
#192207 - 2009-02-12 08:35 PM Re: USE command not mapping drives in logon script Vista 64 [Re: DWhitehurst]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I had this issue too, when I tested our vista deployment.
nobody could explain it, so decided to skip vista altogether.

never bothered to study it as already hated that OS.
_________________________
!

download KiXnet

Top
#192296 - 2009-02-16 03:24 PM Re: USE command not mapping drives in logon script Vista 64 [Re: Lonkero]
DWhitehurst Offline
Just in Town

Registered: 2009-02-10
Posts: 4
Loc: Plano, Texas
I have noticed that the drives are mapped if you list drives using the net use command but they do not show up in Explorer.
Top
#192299 - 2009-02-16 06:16 PM Re: USE command not mapping drives in logon script Vista 64 [Re: DWhitehurst]
DWhitehurst Offline
Just in Town

Registered: 2009-02-10
Posts: 4
Loc: Plano, Texas
For anyone else that may have this issues. The issue has to do with the UAC and permissions. Microsoft has a script to delay running the logon script allowing it to run with the proper security token. In the following artical look for launchapp.wsf. I have tested this and it is working for me. Although i did have to comment out a few lines so it would run without user interaction.

http://technet.microsoft.com/en-us/library/cc766208.aspx

Top
#192301 - 2009-02-16 10:07 PM Re: USE command not mapping drives in logon script Vista 64 [Re: DWhitehurst]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Glenn... is this something you had to do?

Whitehurst/Glenn... are you disabling UAC or leaving it on?


Top
#192302 - 2009-02-16 11:53 PM Re: USE command not mapping drives in logon script Vista 64 [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
whitehurst, the script is a workaround, yes.

but sadly, this issue was found way before vista RTM (around the time I tested it) and has never got fixed.
I think that proves, not even microsoft wants organizations using vista.
it's ment for home users who don't care that much of the slowness of the computer, etc.
_________________________
!

download KiXnet

Top
#192303 - 2009-02-17 12:19 AM Re: USE command not mapping drives in logon script Vista 64 [Re: Lonkero]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Here is the contents of launchapp.wsf:

<job>
<script language="VBScript">
'---------------------------------------------------------
'
This sample launches the application as interactive user.
'---------------------------------------------------------
'
A constant that specifies a registration trigger.
const TriggerTypeRegistration = 7
' A constant that specifies an executable action.
const ActionTypeExecutable = 0
'
A constant that specifies the flag in RegisterTaskDefinition.
const FlagTaskCreate = 2
' A constant that specifies an executable action.
const LogonTypeInteractive = 3
If WScript.Arguments.Length <> 1 Then
WScript.Echo "Usage: cscript launchapp.wsf <AppPath>"
WScript.Quit
End If
strAppPath = WScript.Arguments(0)
'
********************************************************
' Create the TaskService object.
'
********************************************************
Set service = CreateObject("Schedule.Service")
call service.Connect()
strTaskName = "Launch App As Interactive User"
'********************************************************
'
Get a folder to create a task definition in.
'********************************************************
Dim rootFolder
Set rootFolder = service.GetFolder("\")
'
Delete the task if already present
On Error Resume Next
call rootFolder.DeleteTask(strTaskName, 0)
Err.Clear
'********************************************************
'
Create the new task
'********************************************************
Dim taskDefinition
Set taskDefinition = service.NewTask(0)
'
********************************************************
' Create a registration trigger.
'
********************************************************
Dim triggers
Set triggers = taskDefinition.Triggers
Dim trigger
Set trigger = triggers.Create(TriggerTypeRegistration)
'***********************************************************
'
Create the action for the task to execute.
'***********************************************************
'
Add an action to the task. The action executes the app.
Dim Action
Set Action = taskDefinition.Actions.Create( ActionTypeExecutable )
Action.Path = strAppPath
WScript.Echo "Task definition created. About to submit the task..."
'***********************************************************
'
Register (create) the task.
'***********************************************************
call rootFolder.RegisterTaskDefinition( _
strTaskName, taskDefinition, FlagTaskCreate, _
,, LogonTypeInteractive)
WScript.Echo "Task submitted."
</script>
</job>

Top
#192304 - 2009-02-17 01:49 AM Re: USE command not mapping drives in logon script Vista 64 [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
I did not do this, but I don't run my script via GPO. I run via user profile. UAC is enabled on all systems - Vista and 2K8 servers.

No issues this way on any systems.

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

Top
#192305 - 2009-02-17 01:52 AM Re: USE command not mapping drives in logon script Vista 64 [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Oh - one thing.. I do configure my Vista systems with a reg hack, but don't think it's related. It simply sets the delay of the graphic login screen to 0 seconds. Without that hack, the login script runs behind the Windows logo image, which is usually displayed for 30 seconds. The login script runs in 2-3 seconds so I don't see it work without setting the screen delay to 0.

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

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 896 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.064 seconds in which 0.026 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