Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Logon Script

Reply
 
Old 11-22-2006   #1 (permalink)
randyh@newsgroups.nospam


 
 

Logon Script

Hi,

I am trying to get my organization's logon/logoff scripts working with
Vista. I have found one problem that I need some assistance with.

One of our logon scripts maps drives based on group membership. It works
fine in Vista if it is ran once a user is fully logged in but does not work
when ran via the logon script. I have tried the following things:

- Map the drive using WScript.Network.MapNetworkDrive.
- Map the drive using "net use".
- Making the script sleep for 30 seconds before mapping the drives.

Any ideas?


My System SpecsSystem Spec
Old 11-29-2006   #2 (permalink)
JRM


 
 

RE: Logon Script

I had the same problem but it wasnt actually with the mapping of the drive
but how I was gathering the group membership.

I was using:
'Set UserObj = GetObject("WinNT://" & wshNetwork.UserDomain & "/" &
wshNetwork.UserName)

I changed this to the LDAP format similar to this example:
http://www.microsoft.com/technet/scr...4/hey1210.mspx

Does this fix the issue you're having?

Thanks

Jason

"randyh@newsgroups.nospam" wrote:

> Hi,
>
> I am trying to get my organization's logon/logoff scripts working with
> Vista. I have found one problem that I need some assistance with.
>
> One of our logon scripts maps drives based on group membership. It works
> fine in Vista if it is ran once a user is fully logged in but does not work
> when ran via the logon script. I have tried the following things:
>
> - Map the drive using WScript.Network.MapNetworkDrive.
> - Map the drive using "net use".
> - Making the script sleep for 30 seconds before mapping the drives.
>
> Any ideas?
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Logon script PowerShell
Logon Script Causing Laptops To Hang - Problems in script? VB Script
Logon Script VB Script
Logon script is not visible Vista networking & sharing
Logon Script - VBScript Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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