Remove MSOCache from VDI template

If you are going to deploy VDI for your users and you have to install Microsoft Office for the users, you need to keep 1GB free space for the software installation cache files on the virtual machine’s C drive. One gigabyte space is important when you have plan to deploy the VMs as Linked-Clone VMs and it can reduce your storage cost and you can create more VMs.

Now, what is solution to remove the files without any impact:

  1. At first step, install Office components as you want and take a backup from this folder “C:\MSOCache” on a network shared folder our another drive.
  2. Remove the folder from the VM’s C drive.
  3. Make an ISO file from the backup folder. You can also rename the folder, it doesn’t matter.
  4. Create a symbolic link by MKLINK command and make a “Directory Junction” on C drive, for example:
    • MKLINK /J C:\MSOCahce E:\MSOCache
    • E: is your CD-ROM drive your VM.

Then, if you need to modify Office components, you can mount the ISO file and do your modification.

Of course, you can make the symbolic link when you need to this.

There is another solution but it’s very difficult, you have to change cache path on registry.

[quotes_and_tips]

Davoud Teimouri

Davoud Teimouri is as a professional blogger, vExpert 2015/2016/2017/2018/2019, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newsletter and join other subscribers

Holler Box