Disabling Windows 7 Virtual Store

21
Sep 2011

Disabling Windows 7 Virtual Store

comment icon7 comment(s) |

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.

Comments

May 2, 2012

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.

June 19, 2012

Anonymous

Thank you..

Thank you..

July 16, 2012

DrSchizo

Many thanks for the tip, this

Many thanks for the tip, this awful behavior breaks legacy applications and is such a PITA!

July 16, 2012

Anonymous

Thanks!

Nice. Thanks for the workaround.-

September 24, 2012

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.

February 14, 2013

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.

February 14, 2013

fabrizio

thanks a lot for this

thanks a lot for this blogpost, it saved my day!

fabrizio

Search