Windows 10 Shared folder hang in VMware Fusion.
According to @steve goddard, this is caused by Microsoft upgrades destroying registry settings.
I wrote a VBScript check and fix the registry.
github project: https://github.com/sskaje/vmware_windows_10_shared_folder_fixer
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 |
' ' VMware Fusion/Workstation Shared Folder Fixer ' ' Author: sskaje ' ' ' Ask for Administrator Access If Not WScript.Arguments.Named.Exists("elevate") Then CreateObject("Shell.Application").ShellExecute WScript.FullName _ , WScript.ScriptFullName & " /elevate", "", "runas", 1 WScript.Quit End If ' Registry related variables Dim objShell, regNetworkProviderOrder, regValueType, currentValue, vmhgfs, comma regNetworkProviderOrder = "HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order\ProviderOrder" regValueType = "REG_SZ" vmhgfs = "vmhgfs" comma = "," Set objShell = WScript.CreateObject("WScript.Shell") currentValue = objShell.RegRead(regNetworkProviderOrder) Dim searchPos, needWriteBack searchPos = InStr(currentValue, vmhgfs) needWriteBack = False If searchPos = 0 Then ' If vmhgfs is not found in registry value, prepend currentValue = vmhgfs + comma + currentValue needWriteBack = True ElseIf searchPos <> 1 Then ' If vmhgfs is not at the beginning, move it there needWriteBack = True Dim providerSets, x providerSets = Split(currentValue, comma) currentValue = vmhgfs For Each x in providerSets Do If x = vmhgfs Then Exit Do ' Skip if current is vmhgfs If x = "" Then Exit Do ' Skip if current is empty string currentValue = currentValue + comma + x ' Append to new value Loop While False Next ' Else ' If vmhgfs is at the beginning, skip End If If needWriteBack = True Then ' Write Registry objShell.RegWrite regNetworkProviderOrder, currentValue, regValueType End If WScript.Echo "Registry has been fixed. Please try Shared Folder." |
VMware Windows 10 Guest Shared Folder Fixer by @sskaje: https://sskaje.me/2016/08/vmware-windows-10-guest-shared-folder-fixer/
Link to this post!