Blog Channels
Disabling Windows 7 Virtual Store
After a recent MS update, I had a user that ran into issues with a legacy application saving all the documents created into a new Virtual Directory and it effectively broke the application. Windows 7 created a new Virtual Directory in this location: C:\Users\*current logged in user*\AppData\Local\VirtualStore\Program Files (x86)\program name. Even with changing the application to point to the correct folder location, Windows 7 was saving the files in this virtual directory.
To force Windows 7 from placing files to be saved in the Virtual Directory I performed the following steps. Note: You must be a local administrator or logged in as a local administrator on the computer to accomplish this.
-Go to the new Virtual Directory application folder that Windows 7 created, then right click > Properties > Security Tab > Edit and if the Local Computer (Users) account is not listed, then add it and set the permissions to Full Control and save all the way out of the properties.
-Manually copy all of the saved documents or files from the Virtual Directory to the proper location and then rename the folder in the Virtual Directory with something like _old at the end of it to avoid the application from finding it all together.
-From the Windows 7 Start Orb, do a search for Local Security Policy and select it.
-Expand Local Policies and click on Security Options. On the right pane, scroll all the way to the bottom and you will find a setting called " User Account Control: Virtualize file and registry write failures to per-user locations", double click on that setting and change it to Disabled.
The other way of circumventing this is to completely disable Windows 7 UAC (User Access Control), but that is not recommended.



7 comment(s)
Comments
seo consultant
Great blogpost it was
Great blogpost it was actually fascinating and it has resolved a ton of drawbacks and been an absolute way to save time,
Thanks.
Anonymous
Thank you..
Thank you..
DrSchizo
Many thanks for the tip, this
Many thanks for the tip, this awful behavior breaks legacy applications and is such a PITA!
Anonymous
Thanks!
Nice. Thanks for the workaround.-
Wessel
Thank you for this solution
Excellent, I was in such a struggle to get this working on my trading software but now i go tit all nicely put in one directory again and not spread all over the place in virtual stores.
Rap
Thanks
This post was exactly what I needed. Thanks for that. You saved me. In case anyone else who is searching for this is using Windows 7 Home (as I was), there is no Local Policies found. Here's what you do:
- Regedit.exe
- Go to HKLM/Software/Microsoft/Windows/CurrentVersion/Policies
- Right-click on Policies and add a DWORD:
- Name is EnableVirtualization
- Value is 0 (Note: Zero means 'disable')
After a restart, it'll ignore the Virtual Store as you said.
fabrizio
thanks a lot for this
thanks a lot for this blogpost, it saved my day!
fabrizio