How to increase chach with poweshell before installing an app ?

תמיר עופרי 1 Reputation point
2021-02-22T08:22:58.29+00:00

Hey
I'm trying to run a script that will increase the cache on my computer so that I can install visual studio during Task Sequence I've been trying a few ways and unsuccessfully.
I'd love your help.
That's the script.
70583-increase-ccmcachesize.txt

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
922 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
463 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Simon Ren-MSFT 31,441 Reputation points Microsoft Vendor
    2021-02-22T09:17:31.393+00:00

    Hi,

    Thanks for posting in Microsoft MECM Q&A forum.

    The script is OK. Please try to put your script into a standard package and then create a program for your script using a command-line like:
    powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File .\Increase-CCMCacheSize

    Here is a great article for your reference: Temporarily Increasing the ConfigMgr Client Cache Size for a Large Application

    Thanks for your time.

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Garth Jones 2,076 Reputation points
    2021-02-22T13:31:56.203+00:00

    This Might NOT work for a TS. As you generally need to increase BEFORE you start the any installs as such if you create a dependency or run a program before running the TS that should work. Also remember that you need to run it form the DP not from the cache itself.

    0 comments No comments

  3. Barleyologist 116 Reputation points
    2021-02-23T01:38:17.11+00:00

    I thought the Prod Dev team announced they were working on fixing the need to increase the cache with what I could only guess would be auto expanding cache per deployment except if violates a set of rules, i.e. can't fill the drive c:.

    0 comments No comments

  4. Garth Jones 2,076 Reputation points
    2021-02-23T13:10:05.91+00:00

    it is entirely possible that they announced that. @Jason Sandys would know better than I would.

    0 comments No comments

  5. Gary Blok 1,736 Reputation points
    2021-02-24T03:55:31.537+00:00

    Perhaps using the App Model instead of a TS, then have a dependency App that sets the CMCache size. You could put requirements on the Dependency App that looks for free space etc before trying to run. It would then Fail your requirements on low disk space (Requirements Not Met) and you could direct those machines over to a service request to get more storage cleared up.

    The worst thing is trying to set the Cache to 50GB when only 30GB is free.

    FYI.. I have not tested this idea, I'm just tossing out potential theories you could test.

    0 comments No comments