This website uses cookies essential to its operation, for analytics, and for personalized content. By continuing to browse this site, you acknowledge the use of cookies. For details on cookie usage on our site, read our Privacy Policy
We have file called Map_Home_Drive.vbs which is installed on all the machines that the registry points to. In AD we have the home drive mapped (I am not the AD admin so I am not sure which field they populated but I know the drive is mapped in there) '--- START DIM strHomeDrive, strRemoteShare SET objFileSys = CreateObject( "Scripting.FileSystemObject" ) SET objNetwork = CreateObject( "WScript.Network" ) '--- Wait a short time to connect to the network WScript.Sleep( 15000 ) '--- Get Active Directory information SET objSysInfo = CreateObject( "ADSystemInfo" ) SET objUser = GetObject( "LDAP://" & objSysInfo.UserName ) strHomeDrive = objUser.HomeDrive strHomeShare = objUser.HomeDirectory WScript.Echo vbCrLf WSCript.Echo Now() WScript.Echo "strHomeDrive: " & strHomeDrive WScript.Echo "strHomeShare: " & strHomeShare WScript.Echo vbCrLf '--- Is strHomeDrive already mapped? If objFileSys.FolderExists( strHomeDrive ) Then WScript.Echo vbCrLf WScript.Echo strHomeDrive & " is already mapped - DONE" Else LoopCounter = 1 LoopTotal = 5 bolHomeShareMapped = FALSE Do While LoopCounter <= LoopTotal WScript.Echo vbCrLf WScript.Echo "Mapping home share - attempt " & LoopCounter & " of " & LoopTotal '--- Check for home share If objFileSys.FolderExists( strHomeShare ) Then WScript.Echo "Home share found..." '--- Map home share if it can be seen WScript.Echo "Mapping to home share..." objNetwork.MapNetworkDrive strHomeDrive, strHomeShare, False '--- Verify home share is mapped WScript.Sleep( 5000 ) If objFileSys.FolderExists( strHomeDrive ) Then WScript.Echo "Home share mapped..." bolHomeShareMapped = TRUE Exit Do End If Else WScript.Echo "Home share not found...waiting" WScript.Sleep( 5000 ) End If LoopCounter = LoopCounter + 1 Loop '--- Report home share status If bolHomeShareMapped Then WScript.Echo "Home share mapped" Else WScript.Echo "Home share not mapped" End If End If '--- END
... View more
So I want to share that I believe we have found the solution for mapping our personal drives without having to have the pre-logon. I had one of my admins create a .vbs file that will pull the home drive mapping info from AD. then we added a registry key into the install package to point to the .vbs file to execute this post-vpn-connect. https://docs.paloaltonetworks.com/globalprotect/7-1/globalprotect-admin/set-up-the-globalprotect-infrastructure/deploy-agent-settings-transparently/deploy-agent-settings-to-windows-endpoints/deploy-scripts-using-the-windows-registry
... View more
I am having the exact same issue but mine is "well Sonic Firewall works". Makes it hard to sell a new VPN solution to management when things like this don't work.
... View more