PowerShell Script as Application - won't download to CCMCache

KitKat 1 Reputation point

Hi all,

We have some Windows 10 20H2 clients.

Created application in MECM, deployed to clients, files never download to CCMCache.

Created MSI app (7zip) in MECM, deployed to same clients, files download successfully to CCMCache.

Anyone know if new security / changes were implemented with 20H2? Or seen similar issues and resolved?



  • List item
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,368 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KitKat 1 Reputation point

    OK, detection method was "not blank" (returned $False) instead of doing nothing in the script block.

    detection method

    $targetpath = [Environment]::GetFolderPath("CommonDesktopDirectory")
    $shortcut_location = $targetpath + "\Facebook.lnk"

    if (test-path -PathType Leaf $shortcut_location ) {
    Write-Output $true
    else {
    # Write-Output $false

    detection method

    Will leave here in case it helps someone else. :)