Office and FSLogix Apps Rule Editor

%3CLINGO-SUB%20id%3D%22lingo-sub-2107729%22%20slang%3D%22en-US%22%3EOffice%20and%20FSLogix%20Apps%20Rule%20Editor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2107729%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20article%20explains%20the%20process%20to%20take%20a%20VM%20with%20Office%20installed.%20Offload%20the%20Office%20folder%20to%20a%20network%20location%20and%20use%20the%20VM%20as%20a%20template%20for%20all%20other%20machines%20in%20the%20host%20pool.%20By%20offloading%20the%20Office%20install%20footprint%20folder%20the%20following%20benefits%20are%20achieved%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EReduce%20requirements%20for%20C%3A%20disk%20size%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EWhen%20snapshot%20and%2For%20backup%20is%20performed%20those%20are%20smaller%20and%20from%20there%20cheaper%20to%20store%3C%2FLI%3E%0A%3CLI%3EEasier%20to%20update%20images%20using%20an%20automated%20pipeline%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EOne%20instance%20of%20office%20per%20host%20and%20potentially%20WVD%20deployment%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22111.png%22%20style%3D%22width%3A%20962px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250428i8EB0CDBC02D89391%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22111.png%22%20alt%3D%22111.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--524312327%22%20id%3D%22toc-hId--528747368%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1963200506%22%20id%3D%22toc-hId-1958765465%22%3EPrerequisites%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20covers%20the%20prerequisites%20for%20the%20manual%20process.%20Later%20we%20can%20automate.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EVM%20running%20Windows%3C%2FLI%3E%0A%3CLI%3ECopy%20of%20Office%3C%2FLI%3E%0A%3CLI%3EFSLogix%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-155746043%22%20id%3D%22toc-hId-151311002%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1651708420%22%20id%3D%22toc-hId--1656143461%22%3EInstall%20Office%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERDP%20in%20the%20VM.%3C%2FP%3E%0A%3CP%3EInstall%20Office.%20Installation%20can%20be%20either%20manually%20or%20via%20an%20automated%20process.%20More%20information%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Finstall-office-on-wvd-master-image%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22q.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250429i4F1A157F66B02436%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22q.png%22%20alt%3D%22q.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDuring%20the%20installation%20apply%20proper%20licensing.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%20WVD%20requires%20Share%20Computer%20Activation%20(SCA).%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20installation%20is%20completed%20close%20Office.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-835804413%22%20id%3D%22toc-hId-831369372%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--971650050%22%20id%3D%22toc-hId--976085091%22%3EInstall%20FSLogix%3C%2FH2%3E%0A%3CP%3EOpen%20a%20browser%20and%20navigate%20to%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Ffslogix_download%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Ehttp%3A%2F%2Faka.ms%2Ffslogix_download%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20will%20trigger%20the%20download%20of%20the%20FSLogix%20agent.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20download%20is%20complete%20open%20the%20FSLogix%20zip%20file%20and%20from%20the%20x64%5CReleases%20install%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FSLogixAppsSetup.exe%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Check%20%3CSTRONG%3EI%20agree%20to%20the%20license%20and%20terms%20and%20conditions%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Click%3CSTRONG%3E%20Install%3C%2FSTRONG%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FSLogixAppsRuleEditorSetup.exe%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Check%20%3CSTRONG%3EI%20agree%20to%20the%20license%20and%20terms%20and%20conditions%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Click%3CSTRONG%3E%20Install%3C%2FSTRONG%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorStefan%20Georgiev_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EOpen%20%3CSTRONG%3ECMD%3C%2FSTRONG%3E%20as%20administrator%20run%3C%2FP%3E%0A%3CP%3E%3CCODE%3Esc%20queryex%20type%3Dservice%20state%3Dall%20%7C%20find%20%2Fi%20%22ClickToRunSvc%22%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3EIf%20service%20is%20found%20use%20following%20command%20to%20stop%20it%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CCODE%3Enet%20stop%26nbsp%3BClickToRunSvc%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOpen%20%3CSTRONG%3ECMD%3C%2FSTRONG%3E%20as%20administrator%20run%20to%20end%20Edge%3C%2FP%3E%0A%3CP%3E%3CCODE%3Etaskkill%20%2FF%20%2FIM%20MicrosoftEdge.exe%20%2FT%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%3CCODE%3Etaskkill%20%2FF%20%2FIM%20msedge.exe%20%2FT%3C%2FCODE%3E%3CCODE%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%26nbsp%3B%3CSTRONG%3Ec%3A%5CProgram%20Files%5CFSLogix%5CApps%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--281088576%22%20id%3D%22toc-hId--285523617%22%3ECreate%20target%20VHD%3C%2FH3%3E%0A%3CP%3E%3CCODE%3Efrx%20moveto-vhd%20-filename%20%3CPATH%20to%3D%22%22%20network%3D%22%22%20share%3D%22%22%3E%5Coffice.vhdx%20-src%20%22C%3A%5CProgram%20Files%5CMicrosoft%20Office%22%20-size-mbs%205000%3C%2FPATH%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%20the%20outcome%20of%20this%20operation%20is%20the%20creation%20of%20a%20VHDX%26nbsp%3B%3C%2FEM%3E%3CEM%3Ewith%20the%20content%20of%20the%20C%3A%5CProgram%20Files%5CMicrosoft%20Office.%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2088543039%22%20id%3D%22toc-hId--2092978080%22%3ECreate%20rules%20file%3C%2FH3%3E%0A%3CP%3EStart%20the%20rule%20editor%20(%3CSTRONG%3EC%3A%5CProgram%20Files%5CFSLogix%5CApps%5CRuleEditor.exe%3C%2FSTRONG%3E).%3C%2FP%3E%0A%3CP%3ECreate%20a%20new%20%3CSTRONG%3ERule%20Set%20File%3C%2FSTRONG%3E%20by%20clicking%20File%20%26gt%3B%20New%20create%20and%20saving%20the%20ruleset%20to%20the%20local%20folder%20(e.g.%20C%3A%5CUsers%5Cssa.GT090617%5CDocuments%5CFSLogix%20Rule%20Sets).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2212.png%22%20style%3D%22width%3A%20608px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250432i86331058AF82BBCE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2212.png%22%20alt%3D%2212.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelect%20%3CSTRONG%3EBlank%20Rule%20Set%20%3C%2FSTRONG%3Eand%20press%20%3CSTRONG%3EOK.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EClick%20the%20%3CSTRONG%3E%2B%3C%2FSTRONG%3E%20button.%20This%20will%20open%20the%20%3CSTRONG%3EAdd%20Rule%3C%2FSTRONG%3E%20dialog.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22a.png%22%20style%3D%22width%3A%20692px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250433iC4DC2C20035451A5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22a.png%22%20alt%3D%22a.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22b.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250437iD40D1999EBB7351A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22b.png%22%20alt%3D%22b.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20will%20change%20the%20options%20in%20the%20%3CSTRONG%3EAdd%20Rule%3C%2FSTRONG%3E%20dialog.%3CBR%20%2F%3EFrom%20the%20drop-down%20select%20%3CSTRONG%3EApp%20Container%20(VHD)%20Rule.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22c.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250434i3FCFF6AED84022CE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22c.png%22%20alt%3D%22c.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20folder%20type%20%3CSTRONG%3EC%3A%5CProgram%20Files%5CMicrosoft%20Office%3C%2FSTRONG%3E.%3CBR%20%2F%3EFor%20Disk%20file%20select%20%3CSTRONG%3E%3CPATH%3E%5Coffice.vhd%3C%2FPATH%3E%3C%2FSTRONG%3E%20from%20the%20%3CSTRONG%3ECreate%20target%20VHD%3C%2FSTRONG%3E%20section.%3CBR%20%2F%3EClick%20OK.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22d.png%22%20style%3D%22width%3A%20609px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250436iACE6A69F75E2B1DE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22d.png%22%20alt%3D%22d.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20.frx%20and%20.fxa%20are%20always%20saved%20in%20a%20working%20folder%20(e.g.%3CSTRONG%3E%20C%3A%5CUsers%5C%3CUSERNAME%3E%5CDocuments%5CFSLogix%20Rule%20Sets%3C%2FUSERNAME%3E%3C%2FSTRONG%3E).%20Both%20files%20need%20to%20be%20moved%20to%20the%20Rules%20folder%20C%3A%5CProgram%20Files%5CFSLogix%5CApps%5CRules%20become%20effective.%20This%20is%20by%20design.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

This article explains the process to take a VM with Office installed. Offload the Office folder to a network location and use the VM as a template for all other machines in the host pool. By offloading the Office install footprint folder the following benefits are achieved:

  • Reduce requirements for C: disk size 
  • When snapshot and/or backup is performed those are smaller and from there cheaper to store
  • Easier to update images using an automated pipeline 
  • One instance of office per host and potentially WVD deployment 

 

111.png

 

Prerequisites

 

This covers the prerequisites for the manual process. Later we can automate.

  • VM running Windows
  • Copy of Office
  • FSLogix

 

Install Office

 

RDP in the VM.

Install Office. Installation can be either manually or via an automated process. More information here.

q.png

During the installation apply proper licensing.

 

Note: WVD requires Share Computer Activation (SCA).

 

Once the installation is completed close Office.

 

Install FSLogix

Open a browser and navigate to http://aka.ms/fslogix_download.

This will trigger the download of the FSLogix agent.

 

Once the download is complete open the FSLogix zip file and from the x64\Releases install:

              FSLogixAppsSetup.exe

                             Check I agree to the license and terms and conditions

                             Click Install                   

 

              FSLogixAppsRuleEditorSetup.exe

                             Check I agree to the license and terms and conditions

                             Click Install           

 

Open CMD as administrator run

sc queryex type=service state=all | find /i "ClickToRunSvc"

If service is found use following command to stop it 

net stop ClickToRunSvc

 

Open CMD as administrator run to end Edge

taskkill /F /IM MicrosoftEdge.exe /T

taskkill /F /IM msedge.exe /T

 

Navigate to c:\Program Files\FSLogix\Apps

Create target VHD

frx moveto-vhd -filename <path to network share>\office.vhdx -src "C:\Program Files\Microsoft Office" -size-mbs 5000

 

Note: the outcome of this operation is the creation of a VHDX with the content of the C:\Program Files\Microsoft Office. 

Create rules file

Start the rule editor (C:\Program Files\FSLogix\Apps\RuleEditor.exe).

Create a new Rule Set File by clicking File > New create and saving the ruleset to the local folder (e.g. C:\Users\ssa.GT090617\Documents\FSLogix Rule Sets).

 

12.png

 

Select Blank Rule Set and press OK.

Click the + button. This will open the Add Rule dialog.

 

a.pngb.png

 

This will change the options in the Add Rule dialog.
From the drop-down select App Container (VHD) Rule.

 

c.png

 

For folder type C:\Program Files\Microsoft Office.
For Disk file select <path>\office.vhd from the Create target VHD section.
Click OK.

 

d.png

 

The .frx and .fxa are always saved in a working folder (e.g. C:\Users\<username>\Documents\FSLogix Rule Sets). Both files need to be moved to the Rules folder C:\Program Files\FSLogix\Apps\Rules become effective. This is by design.

 

Click Apply Rules to System for the rules to take effect.

 

 

 

0 Replies