Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Login script

Reply
 
 
George Spiro
Guest
Posts: n/a

 
      08-04-2008
Hi,

I am trying to add a registry entry into my login script. Could you
please help me out?

Right now the login script for my users is looking like follow:

Set objNetwork = CreateObject("Wscript.Network")

On Error Resume Next
Err.Clear
objNetwork.MapNetworkDrive "H:", "\\SRV2\usagers"
objNetwork.MapNetworkDrive "P:", "\\SRV2\public"
objNetwork.MapNetworkDrive "V:", "\\SRV2\archives"

If Err.Number <> 0 Then
Err.Clear
On Error GoTo 0
objNetwork.RemoveNetworkDrive "H:", True, True
objNetwork.RemoveNetworkDrive "P:", True, True
objNetwork.RemoveNetworkDrive "V:", True, True
objNetwork.MapNetworkDrive "H:", "\\SRV2\usagers"
objNetwork.MapNetworkDrive "P:", "\\SRV2\public"
objNetwork.MapNetworkDrive "V:", "\\SRV2\archives"

End If
On Error GoTo 0

I would add a registry entry that WILL NOT PROMPT THE USER and will
only get applied the first time, the user logins to that workstation.

The registry entry is the following:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User
Shell Folders]
"Cache"=hex(2):25,55,53,45,52,50,52,4f,46,49,4c,45 ,25,5c,4c,6f,63,61,6c,20,53,\

65,74,74,69,6e,67,73,5c,54,65,6d,70,6f,72,61,72,79 ,20,49,6e,74,65,72,6e,65,\
74,20,46,69,6c,65,73,00

Thank you for your help,

G.
 
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
to add username & password into my login.cmd - login script sphilip Scripting 4 03-05-2008 04:34 PM
Remote user not getting login script when they login. Dig Dug Active Directory 1 09-05-2007 04:22 PM
Login Script NAME with space (login script.bat) jayau1 Active Directory 3 03-28-2006 11:41 PM
Re: Login Script NAME with space (login script.bat) chriss3 [MVP] Active Directory 0 03-27-2006 10:19 PM
Login as user but run login script portions with Domain Admins Permissions Steven Sutherland Scripting 1 07-15-2003 02:26 AM



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