Subscribe: Posts | Comments
  • Home
  • About Webster
  • Download Scripts
  • Conferences
  • Testimonials
  • Contact
  • Archives
  • Sitemap
  • Store
Carl Webster
  • Active Directory
  • Blog
    • Certification
  • PVS
  • Web Interface
    • Receiver
    • Secure Gateway
  • Presentations
  • PowerShell
  • XenApp
    • XenApp 5 for Windows Server 2003
    • XenApp 5 for Windows Server 2008
    • XenApp 6 for Windows Server 2008 R2
    • XenApp 6.5 for Windows Server 2008 R2
  • XenDesktop
  • XenServer
  • Set-SageSet1 PowerShell Script V1.10

    December 15, 2018

    PowerShell, XenApp 6 for Windows Server 2008 R2, XenApp 6.5 for Windows Server 2008 R2, XenApp 7.x for Windows Server 2012+, XenDesktop

    My Windows 10 management VM received the 1809 release. In the Disk Cleanup utility (cleanmgr.exe), Microsoft added the Downloads folder to the list of items that can be cleaned.

    Figure 1
    Figure 1

    That may not be a good thing because if you run V1.00 of this script, or just blindly select every checkbox, you can find yourself missing all your downloaded files.

    In this update, I added a -Downloads switch parameter. The parameter is $False by default so the DownloadsFolder is excluded. If you use -Downloads, that sets the switch to True which will cause the DownloadsFolder to be selected and then cleaned up the next time you run cleanmgr /SageRun:1.

    I also added a -Reset witch parameter. If you use this switch, the script will set all items in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches to 0 which means the checkbox is unselected.

    Figure 1 shows the initial run of cleanmgr /SageSet:1. Running the script with no parameters, as shown in Figure 2, results in all but the Downloads item selected, as shown in Figure 3.

    Figure 2
    Figure 2
    Figure 3
    Figure 3

    Using -Downloads will also select Downloads as shown in Figures 4 and 5.

    Figure 4
    Figure 4
    Figure 5
    Figure 5

    Using -Reset will set all the items in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches to 0, as shown in Figures 6 and 7.

    Figure 6
    Figure 6
    Figure 7
    Figure 7

    I hope you find the updated script useful, especially for keeping your computer, servers, and master images for Citrix XenApp/XenDesktop, VMware Horizon, Microsoft RDS, and Parallels RAS clean and disk space usage down.

    Thanks

    Webster







    About Carl Webster

    Webster is a Sr. Solutions Architect for Choice Solutions, LLC and specializes in Citrix, Active Directory and Technical Documentation. Webster has been working with Citrix products for many years starting with Multi-User OS/2 in 1990.

    View all posts by Carl Webster →

    Subscribe

    Subscribe to our e-mail newsletter to receive updates.

    Related Posts:

    • Group Policy Default Settings Reference for Citrix XenApp and XenDesktop V1.06
    • Group Policy Default User Settings Reference for Citrix XenApp and XenDesktop V1.05
    • Group Policy Default Computer Settings Reference for Citrix XenApp and XenDesktop V1.05
    • Set-SageSet1 PowerShell Script V1.00
    • Group Policy Default User Settings Reference for Citrix XenApp and XenDesktop V1.04

    Post navigation

    ← Citrix XenApp 6.5 Documentation Script Update 5.00
    Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.20 →

    No comments yet.

    Leave a Reply

    Click here to cancel reply.

Support Script Development

I've spent numerous hours working on the many documentation and miscellaneous scripts, which are freely available, for both personal and commercial use, here on my site.

If you'd like to say thanks, please consider making a donation to keep them going!

eG Innovations: How to Make Citrix Logons 75% Faster?

eG Innovations: How to Make Citrix Logons 75% Faster?

ControlUp

Next-gen EDGE OS for Cloud Workspaces

Next-gen EDGE OS for Cloud Workspaces

Goliath Technologies

Goliath Technologies

SysKit Monitor

Cost-Effective Application on Any Device

Cost-Effective Application on Any Device

CTP Logo

Carl Webster is a Citrix Technology Professional

JOIN THE IGEL COMMUNITY

JOIN THE IGEL COMMUNITY

Parallels VIPP

Parallels VIPP

Experts Exchange Badge

#1
#2
#3
Questions Answered
Articles Written
Overall Points

CCE-V

Subscribe

Subscribe to our e-mail newsletter to receive updates.

Featured Downloads

  • XenApp 6.5 (137625 downloads)
  • All Scripts Zip File (61779 downloads)
  • XenApp 6 (48780 downloads)
  • Provisioning Services (PVS) Old (38879 downloads)
  • Active Directory (29341 downloads)
  • XenApp 5 for Windows Server 2003 (19679 downloads)
  • XenApp 5 for Windows Server 2008 (18341 downloads)
  • NetScaler Old (ns.conf) (15297 downloads)
  • Microsoft DHCP (13080 downloads)
  • Active Directory Health Check (12462 downloads)
  • Popular
  • Latest
  • Comments
  • Tags
  • Where to Get Copies of the Various Documentation Scripts September 30, 2011
  • Citrix XenDesktop 7.6, Provisioning Services 7.6 and the XenDesktop Setup Wizard with Write Cache and Personal vDisk Drives December 24, 2014
  • Citrix XenDesktop 7.1, Provisioning Services 7.1 and the XenDesktop Setup Wizard with Write Cache and Personal vDisk Drives January 28, 2014
  • Documenting a Citrix XenApp 6.5 Farm with Microsoft PowerShell October 7, 2011
  • Changing a Production XenDesktop 7.1 Site to use SQL Mirroring February 11, 2014
  • Microsoft DNS Documentation Script Update Version 1.12 December 6, 2019
  • Figure 6 New Script: Set-DNSScavengeServer November 1, 2019
  • Manage Citrix & VMware Horizon Deployments (Advertiser Post) October 30, 2019
  • Microsoft DNS Documentation Script Update Version 1.11 October 25, 2019
  • Documenting Citrix StoreFront with Microsoft PowerShell Version 4.00 October 25, 2019
  • Carl Webster: There is a -CSV switch for the Appendixes. I know ...
  • Jason Fortun: These scripts are great. Has anyone had any luck p...
  • Carl Webster: No, I just build it in the script. #V2.28 build r...
  • Carl Webster: Yeah, I wish this was something that Citrix/Micros...
  • Carl Webster: I updated the article with the link to the MSDN ar...
certification citrix citrix secure gateway cloning data store dhcp documentation exams GPO Group Policy How do I how to imaging ipad java license license file license server MyCitrix.com Personal vDisk powershell PowerShell V3 provisioning services publish application PvD PVS pvs 7.1 script scripts secure gateway ssl certificate upgrading virtual machine web interface wildcard ssl Windows Server 2003 Windows Server 2008 Word Word COM Object xenapp xenapp 5 xenapp 6 xenapp 6.5 xendesktop xenserver

Categories

  • Active Directory (78)
  • Blog (76)
  • Certification (5)
  • Configuration Manager (5)
  • DHCP (10)
  • DNS (13)
  • Hyper-V (1)
  • NetScaler (23)
  • Nutanix (2)
  • PowerShell (342)
  • Presentations (14)
  • PVS (86)
  • Receiver (6)
  • SCVMM (1)
  • Secure Gateway (7)
  • Server 2012 (7)
  • SMS PASSCODE MFA (1)
  • StoreFront (9)
  • Uncategorized (2)
  • Vendor Articles (3)
  • VMware (26)
  • Web Interface (20)
  • Workspace Environment Management (1)
  • XenApp (106)
  • XenApp 5 for Windows Server 2003 (68)
  • XenApp 5 for Windows Server 2008 (38)
  • XenApp 6 for Windows Server 2008 R2 (68)
  • XenApp 6.5 for Windows Server 2008 R2 (92)
  • XenApp 7.x for Windows Server 2012+ (102)
  • XenDesktop (143)
  • XenMobile (1)
  • XenServer (27)

Recent Posts

  • Microsoft DNS Documentation Script Update Version 1.12 December 6, 2019
  • New Script: Set-DNSScavengeServer November 1, 2019
  • Manage Citrix & VMware Horizon Deployments (Advertiser Post) October 30, 2019
  • Microsoft DNS Documentation Script Update Version 1.11 October 25, 2019
  • Documenting Citrix StoreFront with Microsoft PowerShell Version 4.00 October 25, 2019
  • Citrix XenApp/XenDesktop 7.8+ Documentation Script Update Version 2.28 September 25, 2019
  • Group Policy Default Settings Reference for Citrix XenApp and XenDesktop V1.10 September 21, 2019
  • Group Policy Default Settings for Citrix Virtual Apps and Desktops That Changed Between 1906 and 1909 September 21, 2019
  • 10 Building Webster’s Lab – Citrix XenServer Host and Pool Configuration September 20, 2019
  • 09 Building Webster’s Lab – Install Citrix XenServer 8.0 September 19, 2019

Copyright © 2003 - 2019 Carl Webster. All Rights Reserved.