|
| |||||||||
| Tags: home folder, logon script, mapped drive, vb script, vbscript |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Home Drive mapping
Dear All, We are facing an issue with user home drive mapping. We have configured user's home drive by adding the path in Home folder feild in user account property. Also we have configured other mapped drives using VB script as logon script. The mapped drives are configured to map persistently by adding the value "true" at the end of each drive. Due to this setting all the drives for user are getting mapped even if they are not connected to network so that they can work from home. In case of home drive the drive is not getting mapped when offline. We have tried to map the home folder persistently but it is not working. It is a business requirement to map the drive for the user when they are offline. I need help on the same. Please let me know if anything can be done for it. Thanks and Regards, Sukhwinder Singh |
|
#2
| |||
| |||
| Re: Home Drive mapping
One solution is to add home drive mapping into VBScript also. There you can make it persistent. |
|
#3
| |||
| |||
| Re: Home Drive mapping
We have tried to put in the below mentioned parameter in the login script for the users from which other drives are mapping but it does not work. Even if we run the script manually and then try to access manually it does not work. "Set objAD = CreateObject("ADSystemInfo") Set objNetwork = CreateObject("Wscript.Network") temp = objAD.UserName Set objUser =GetObject("LDAP://" & temp) thomedrive = objUser.Homedrive thomedirectory= objUser.Homedirectory Wscript.echo thomedirectory objNetwork.MapNetworkDrive thomedrive ,thomedirectory, True" |
|
#4
| |||
| |||
| Re: Home Drive mapping
Try this: Regs Stu Dim strDriveLetter, strProfile, thomedrive, thomedirectory, strXPID Set objAD = CreateObject("ADSystemInfo") Set objNetwork = CreateObject("Wscript.Network") strXPID = objAD.UserName Set objUser =GetObject("LDAP://" & strXPID) thomedrive = objUser.Homedrive thomedirectory= objUser.Homedirectory strDriveLetter="E:" strProfile=False Wscript.echo thomedirectory WScript.Echo thomedrive objNetwork.MapNetworkDrive strDriveLetter,thomedirectory, strProfile |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Home Drive mapping" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mapping a Network drive. | medic1202 | Windows Server Help | 2 | 1 Week Ago 08:27 PM |
| Home drives not mapping to the correct paths | mikes1p | Active Directory | 6 | 12-09-2011 03:38 PM |
| Windows 7 Pro Home folder mapping on Logon not working | Abhimanyusuta | Operating Systems | 6 | 16-08-2010 10:38 AM |
| Network drive mapping | Sukhwinder Singh | Active Directory | 3 | 17-03-2009 05:54 PM |
| Home Mapping Vista Problem | Tom | Windows Server Help | 1 | 23-01-2008 07:55 AM |