Map network drive with logon vbs script
I am using Windows 7, 64 bit
The vbs script to map a network drive as logon script does not work.
Manually executing the script does work!
The script is started with Local Group Policy
-gpedit.msc
-User Configuration
-Windows Settings
-Logon
-Scripts
The script is
----------------------------------------------------------
' Map network drive script
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "T:" , "\\server\drive"
-----------------------------------------------------------
More information see
http://www.computerperformance.co.uk/Logon/Logon_HomeDir.htm
Resolution:
Change or create a value in the registry.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
Here you want to create a DWORD entry named "EnableLinkedConnections" and set
the value to 1
Reboot for the changes to take effect.
Keine Kommentare:
Kommentar veröffentlichen