Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Logon Script - VBScript

Reply
Thread Tools Display Modes

Logon Script - VBScript

 
 
King
Guest
Posts: n/a

 
      04-12-2007
Hi,

I have a Vista Business just installed for testing, all most is working
fine, except for the Logon Script which I created in VBScript to map network
share in servers.

The Vista can logon to the domain and I see it run the logon script, but the
Vista won't map any network share, the script just run, finished and no
error occurs, no drive mapped. If I manual run the same logon script, it map
the network drive successfully.

Does anyone have similar problem (network won't map when logon), and have
solutions on this?

Thanks for help.

King


 
Reply With Quote
 
 
 
 
Guest
Posts: n/a

 
      04-12-2007

"King" <> wrote in message
news:...
> Hi,
>
> I have a Vista Business just installed for testing, all most is working
> fine, except for the Logon Script which I created in VBScript to map
> network
> share in servers.
>
> The Vista can logon to the domain and I see it run the logon script, but
> the
> Vista won't map any network share, the script just run, finished and no
> error occurs, no drive mapped. If I manual run the same logon script, it
> map
> the network drive successfully.
>
> Does anyone have similar problem (network won't map when logon), and have
> solutions on this?
>
> Thanks for help.
>
> King
>
>


King,

Does the script work on an XP or even '9x machine? It might be a good idea
to post the code here so we can take a look at it and see what's going on
(or, what's *not* going on).


 
Reply With Quote
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      04-12-2007
From: http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly. For example, a domain environment contains a Group Policy object that includes a logon script to map network drives. A nonadministrative user logs on to the domain from a Windows Vista computer. After Windows Vista loads the desktop, the nonadministrative user starts Windows Explorer. The user sees their mapped drives. Under the same environment, an administrative user logs on to the domain from a Windows Vista computer. After Windows Vista loads the desktop, the administrative user starts Windows Explorer. The user does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts using the elevated token. The script actually works and maps the drive. However, Windows blocks the view of the mapped network drives because the desktop uses the limited token while the drives were mapped using the elevated token.
To get around this issue, administrative users should map network drives under the limited user token. This mapping is accomplished by using the launchapp.wsf script shown in Appendix A, which works by scheduling the commands using the task scheduler. The task scheduler launches the script under the administrative full token, thereby allowing Windows Explorer, other limited token processes, and the elevated token process to view the mapped network drives.

</quote>

© 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"King" <> wrote in message news:...
Hi,

I have a Vista Business just installed for testing, all most is working
fine, except for the Logon Script which I created in VBScript to map network
share in servers.

The Vista can logon to the domain and I see it run the logon script, but the
Vista won't map any network share, the script just run, finished and no
error occurs, no drive mapped. If I manual run the same logon script, it map
the network drive successfully.

Does anyone have similar problem (network won't map when logon), and have
solutions on this?

Thanks for help.

King
 
Reply With Quote
 
King
Guest
Posts: n/a

 
      04-13-2007
Hi Ramesh,

Thanks very much for your information, your quote you provided is exactly
what the problem I have, as my account is under Local Administrators group
of Windows Vista, after I try logon with other domain account without Local
Admin rights, the logon script run and drive mapped successfully.

Thanks!

King

"Ramesh, MS-MVP" <> wrote in message
news:...
From:
http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly.
For example, a domain environment contains a Group Policy object that
includes a logon script to map network drives. A nonadministrative user logs
on to the domain from a Windows Vista computer. After Windows Vista loads
the desktop, the nonadministrative user starts Windows Explorer. The user
sees their mapped drives. Under the same environment, an administrative user
logs on to the domain from a Windows Vista computer. After Windows Vista
loads the desktop, the administrative user starts Windows Explorer. The user
does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts
using the elevated token. The script actually works and maps the drive.
However, Windows blocks the view of the mapped network drives because the
desktop uses the limited token while the drives were mapped using the
elevated token.
To get around this issue, administrative users should map network drives
under the limited user token. This mapping is accomplished by using the
launchapp.wsf script shown in Appendix A, which works by scheduling the
commands using the task scheduler. The task scheduler launches the script
under the administrative full token, thereby allowing Windows Explorer,
other limited token processes, and the elevated token process to view the
mapped network drives.

</quote>

© 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"King" <> wrote in message
news:...
Hi,

I have a Vista Business just installed for testing, all most is working
fine, except for the Logon Script which I created in VBScript to map network
share in servers.

The Vista can logon to the domain and I see it run the logon script, but the
Vista won't map any network share, the script just run, finished and no
error occurs, no drive mapped. If I manual run the same logon script, it map
the network drive successfully.

Does anyone have similar problem (network won't map when logon), and have
solutions on this?

Thanks for help.

King


 
Reply With Quote
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      04-13-2007
Excellent! Thanks for the update, King.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"King" <> wrote in message news:...
Hi Ramesh,

Thanks very much for your information, your quote you provided is exactly
what the problem I have, as my account is under Local Administrators group
of Windows Vista, after I try logon with other domain account without Local
Admin rights, the logon script run and drive mapped successfully.

Thanks!

King

"Ramesh, MS-MVP" <> wrote in message
news:...
From:
http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly.
For example, a domain environment contains a Group Policy object that
includes a logon script to map network drives. A nonadministrative user logs
on to the domain from a Windows Vista computer. After Windows Vista loads
the desktop, the nonadministrative user starts Windows Explorer. The user
sees their mapped drives. Under the same environment, an administrative user
logs on to the domain from a Windows Vista computer. After Windows Vista
loads the desktop, the administrative user starts Windows Explorer. The user
does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts
using the elevated token. The script actually works and maps the drive.
However, Windows blocks the view of the mapped network drives because the
desktop uses the limited token while the drives were mapped using the
elevated token.
To get around this issue, administrative users should map network drives
under the limited user token. This mapping is accomplished by using the
launchapp.wsf script shown in Appendix A, which works by scheduling the
commands using the task scheduler. The task scheduler launches the script
under the administrative full token, thereby allowing Windows Explorer,
other limited token processes, and the elevated token process to view the
mapped network drives.

</quote>

© 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com

 
Reply With Quote
 
Joe Guidera
Guest
Posts: n/a

 
      04-14-2007
I don't suppose Microsoft is going to address that particular problem?
After all, login scripts should work equally well for members of the
administrators group as they do for those who aren't administrators.

Using a scheduled task to work around the problem is hardly a good long term
solution.

Many thanks,
Joe

"Ramesh, MS-MVP" <> wrote in message
news:#...
Excellent! Thanks for the update, King.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"King" <> wrote in message
news:...
Hi Ramesh,

Thanks very much for your information, your quote you provided is exactly
what the problem I have, as my account is under Local Administrators group
of Windows Vista, after I try logon with other domain account without Local
Admin rights, the logon script run and drive mapped successfully.

Thanks!

King

"Ramesh, MS-MVP" <> wrote in message
news:...
From:
http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly.
For example, a domain environment contains a Group Policy object that
includes a logon script to map network drives. A nonadministrative user logs
on to the domain from a Windows Vista computer. After Windows Vista loads
the desktop, the nonadministrative user starts Windows Explorer. The user
sees their mapped drives. Under the same environment, an administrative user
logs on to the domain from a Windows Vista computer. After Windows Vista
loads the desktop, the administrative user starts Windows Explorer. The user
does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts
using the elevated token. The script actually works and maps the drive.
However, Windows blocks the view of the mapped network drives because the
desktop uses the limited token while the drives were mapped using the
elevated token.
To get around this issue, administrative users should map network drives
under the limited user token. This mapping is accomplished by using the
launchapp.wsf script shown in Appendix A, which works by scheduling the
commands using the task scheduler. The task scheduler launches the script
under the administrative full token, thereby allowing Windows Explorer,
other limited token processes, and the elevated token process to view the
mapped network drives.

</quote>

© 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com

 
Reply With Quote
 
Mike Crowley
Guest
Posts: n/a

 
      10-28-2009

This KB is a direct resolution to this issue. However it't an "unsupported" fix:

After you turn on User Account Control in Windows Vista, programs may be unable to access some network locations
http://support.microsoft.com/kb/937624



Joe Guidera wrote:

I don't suppose Microsoft is going to address that particular problem?
14-Apr-07

I don't suppose Microsoft is going to address that particular problem?
After all, login scripts should work equally well for members of the
administrators group as they do for those who aren't administrators.

Using a scheduled task to work around the problem is hardly a good long term
solution.

Many thanks,
Joe

"Ramesh, MS-MVP" <> wrote in message
news:#...
Excellent! Thanks for the update, King.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows? Troubleshooting http://www.winhelponline.com


"King" <> wrote in message
news:...
Hi Ramesh,

Thanks very much for your information, your quote you provided is exactly
what the problem I have, as my account is under Local Administrators group
of Windows Vista, after I try logon with other domain account without Local
Admin rights, the logon script run and drive mapped successfully.

Thanks!

King

"Ramesh, MS-MVP" <> wrote in message
news:...
From:
http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly.
For example, a domain environment contains a Group Policy object that
includes a logon script to map network drives. A nonadministrative user logs
on to the domain from a Windows Vista computer. After Windows Vista loads
the desktop, the nonadministrative user starts Windows Explorer. The user
sees their mapped drives. Under the same environment, an administrative user
logs on to the domain from a Windows Vista computer. After Windows Vista
loads the desktop, the administrative user starts Windows Explorer. The user
does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts
using the elevated token. The script actually works and maps the drive.
However, Windows blocks the view of the mapped network drives because the
desktop uses the limited token while the drives were mapped using the
elevated token.
To get around this issue, administrative users should map network drives
under the limited user token. This mapping is accomplished by using the
launchapp.wsf script shown in Appendix A, which works by scheduling the
commands using the task scheduler. The task scheduler launches the script
under the administrative full token, thereby allowing Windows Explorer,
other limited token processes, and the elevated token process to view the
mapped network drives.

</quote>

? 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows? Troubleshooting http://www.winhelponline.com

Previous Posts In This Thread:

On Saturday, April 14, 2007 6:30 PM
Joe Guidera wrote:

I don't suppose Microsoft is going to address that particular problem?
I don't suppose Microsoft is going to address that particular problem?
After all, login scripts should work equally well for members of the
administrators group as they do for those who aren't administrators.

Using a scheduled task to work around the problem is hardly a good long term
solution.

Many thanks,
Joe

"Ramesh, MS-MVP" <> wrote in message
news:#...
Excellent! Thanks for the update, King.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows? Troubleshooting http://www.winhelponline.com


"King" <> wrote in message
news:...
Hi Ramesh,

Thanks very much for your information, your quote you provided is exactly
what the problem I have, as my account is under Local Administrators group
of Windows Vista, after I try logon with other domain account without Local
Admin rights, the logon script run and drive mapped successfully.

Thanks!

King

"Ramesh, MS-MVP" <> wrote in message
news:...
From:
http://technet2.microsoft.com/Window....mspx?mfr=true

<quote>

UAC may prevent Group Policy logon scripts from appearing to work properly.
For example, a domain environment contains a Group Policy object that
includes a logon script to map network drives. A nonadministrative user logs
on to the domain from a Windows Vista computer. After Windows Vista loads
the desktop, the nonadministrative user starts Windows Explorer. The user
sees their mapped drives. Under the same environment, an administrative user
logs on to the domain from a Windows Vista computer. After Windows Vista
loads the desktop, the administrative user starts Windows Explorer. The user
does not see their mapped drives.
When the administrative user logs on, Windows processes the logon scripts
using the elevated token. The script actually works and maps the drive.
However, Windows blocks the view of the mapped network drives because the
desktop uses the limited token while the drives were mapped using the
elevated token.
To get around this issue, administrative users should map network drives
under the limited user token. This mapping is accomplished by using the
launchapp.wsf script shown in Appendix A, which works by scheduling the
commands using the task scheduler. The task scheduler launches the script
under the administrative full token, thereby allowing Windows Explorer,
other limited token processes, and the elevated token process to view the
mapped network drives.

</quote>

? 2007 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows? Troubleshooting http://www.winhelponline.com

EggHeadCafe - Software Developer Portal of Choice
Notify Client Applications Using WCF Callbacks
http://www.eggheadcafe.com/tutorials...plication.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon script problem Jonny Bergdahl Windows Vista Networking 4 05-06-2009 02:59 PM
Logon script not running? Murphy Wong Windows Vista General Discussion 2 08-25-2007 11:44 AM
Logon Script randyh@newsgroups.nospam Windows Vista General Discussion 0 11-22-2006 01:46 PM
Allways allow logon-script Jesper Hauge Windows Vista Administration 1 10-09-2006 04:32 PM
Unable to run vbs logon script Wajinga Windows Vista Administration 1 06-13-2006 09:01 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59