PowerShell Script as Application - won't download to CCMCache

KitKat 1 Reputation point
2021-06-30T10:22:51.433+00:00

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?

Regards,

K

  • 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
    2021-06-30T11:42:40.103+00:00

    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. :)