Powershell to run on a Cloud Distribution Point

Duchemin, Dominique 2,006 Reputation points
2022-02-24T06:00:51.177+00:00

Hello,

I have a Cloud Management Gateway used as Distribution point.

How do I pass a PowerShell to it?

$NewHashFolder = "E:\BCPublicationCache"

$NewHashSize = 5GB

New-Item -Path $NewHashFolder -ItemType Directory
$BCCache = Get-BCStatus
Set-BCCache -Path $BCCache.HashCache.CacheFileDirectoryPath -MoveTo $NewHashFolder -Force

$BCHashCache = Get-BCHashCache
$BCHashCache | Set-BCCache -SizeBytes $NewHashSize -Force

Should I deploy the command to the Cloud DP?
Should I try a connection to the cloud DP? How to do this?

Thanks,
Dom

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
692 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Jason Sandys 31,286 Reputation points Microsoft Employee
    2022-02-24T17:08:03.343+00:00

    You need to open a support case then as there's something else going on here.

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 12,491 Reputation points MVP
    2022-02-24T10:47:21.65+00:00

    Is the E:\ drive on DP or local drive on workstation? Just thinking, what do you try to accomplish with the script and do you even need it?

    1 person found this answer helpful.
    0 comments No comments

  2. Jason Sandys 31,286 Reputation points Microsoft Employee
    2022-02-24T16:29:45.193+00:00

    You cannot do this in a supported way. Why are you are trying to do this?

    1 person found this answer helpful.
    0 comments No comments

  3. Duchemin, Dominique 2,006 Reputation points
    2022-02-24T16:52:38.197+00:00

    Hello,

    I have a distribution error:

    There is a package UCP00ABA which is failing to be distributed to the Cloud Management Gateway Distribution point then I find this article:

    https://www.deploymentresearch.com/configmgr-error-distributing-content-to-a-cloud-dp/

    PkgXferMgr.log

    Package upload location is https://cmgo365prod.blob.core.windows.net/content-ucp00aba SMS_PACKAGE_TRANSFER_MANAGER 2/23/2022 1:48:55 AM 18444 (0x480C)
    Failed to generate contentinfo for the package content. BranchCache feature might not be turned on. SMS_PACKAGE_TRANSFER_MANAGER 2/23/2022 1:48:56 AM 18444 (0x480C)

    Thanks,
    Dom

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.