![vmware workstation pro 12 error 1068 vmware workstation pro 12 error 1068](https://i1.wp.com/techsprobe.com/wp-content/uploads/2019/05/1.jpg)
The process could be sped up if the script was more efficient, because it essentially runs (with 2000 entries) 8000 times, at 2 seconds per step, when it could really just be something like 20 unique entries X 4 = 80 times. For 2000 entries plan on this process taking 3-4 hours. bat file is terribly inefficient due to all the duplicates in the quarantine. Now, within that same cmd.exe that is elevated, and running under the context of YOURLOCALADMINACCOUNT, execute the "RunThis.bat" You have now set the affected folders so that YOURLOCALADMINACCOUNT can write to them. You will probably have many entries that look like:Įlevate.exe SetACL.vbs "C:\Windows\winsxs\amd64_31bf3856ad364e35_.16385_en-us_beafdf583b909e3f"Įlevate.exe SetACL.vbs "C:\Windows\system32"Įlevate.exe SetACL.vbs "C:\Windows\SysWOW64"Įlevate.exe SetACL.vbs "C:\Windows\winsxs\somefolderA"Įlevate.exe SetACL.vbs "C:\Windows\winsxs\somefolderB"Īs you paste the list, they will execute one-by-one. Once open, rightclick and copy your entire list of commands, and paste into this cmd.exe I tried various scenarios, and this 1-2 combination was the ONLY way I could get the tool to work. You now will have an elevated cmd.exe running under the context of YOURLOCALADMINACCOUNT Runas /user:YOURLOCALADMINACCOUNT cmd.exe So now we have the command needed to batch this out, and we have a means to elevate our batch files.Įnsure you are logged in as a local administratorġ) right-click on cmd.exe and "run as administrator" Take your document with the unique folder names (ensure you do not have a trailing "\"), wrap in quotes, and add the SetACL in the front of each line.įor example, a valid line would look like: Your file of folder locations where the quarantined files are to be restored now need to have permissions applied to them to get them to accept the release from quarantine. n "Cacls.exe """& args(0) & """ /E /C /R YOURLOCALADMINACCOUNT" Set oShell2 = WScript.CreateObject ("WScript.Shell") n "Cacls.exe """& args(0) & """ /E /C /G YOURLOCALADMINACCOUNT:F" Set oShell = WScript.CreateObject ("WScript.Shell") Don't forget to remove these permissions when you are all done. vbs file to take ownership of subfolders within c:\windows\WinSXS, and the parent folder of c:\windows\SysWow64 and c:\windows\System32.
![vmware workstation pro 12 error 1068 vmware workstation pro 12 error 1068](http://powenchips.weebly.com/uploads/1/3/4/8/134814804/766695069_orig.png)
Put this is the same directory as the Fix provided by MWB.Ĭreated. Played in Excel until I had the list whittled down to just the distinct folder names. Opened file in Excel, did data->columns using "\" as the separator.
![vmware workstation pro 12 error 1068 vmware workstation pro 12 error 1068](https://qjvxgo.xbobo.info/templates/f16dc396e088c7c707eabe9d7479e7a2/img/866f0615c3e5d010bafc35caf60c4804.jpg)
So now I have a text file with unique values. I am sure you could use excel if you wanted to touch these manually. This took the contents of result.txt, and copied just the distinct values into result2.txt. IO.File.WriteAllLines(strResultFile2, lines)
![vmware workstation pro 12 error 1068 vmware workstation pro 12 error 1068](https://i.ytimg.com/vi/RfacCpyeWak/maxresdefault.jpg)
I used visual studio, but there are other means to do so.įor me, wrote a console application which essentially did:ĭim strResultFile As String = Environment.CurrentDirectory & "\result.txt"ĭim lines As String() = IO.File.ReadAllLines(strResultFile)ĭim strResultFile2 As String = Environment.CurrentDirectory & "\result2.txt" Result.txt will now have a list of all items in the text file (including an unnerving number of duplicates). It required quite a bit of hacking.Ĭ:\YourPathToFile\fixtool.exe /quarantine -list > result.txt This is the only way I was able to get the tool to work as intended on the machines that did not need to be reimaged. In the end we had to reimage about 25 machines. Needless to say it was a momumental task getting into safe mode for 150 PCs as each one required the bitlocker key.
#Vmware workstation pro 12 error 1068 windows 7#
Our environment is Windows 7 Enterprise with Bitlocker. I feel for those that are not technical, or lack some programming.