question

KitKat-8126 avatar image
0 Votes"
KitKat-8126 asked JennyFeng-MSFT edited

PowerShell Script as Application - won't download to CCMCache

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KitKat-8126 avatar image
0 Votes"
KitKat-8126 answered JennyFeng-MSFT edited

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KitKat-8126
Hi,
Glad to hear that you have found a solution and thank you for sharing it here,
Please help to "accept your reply as answer" to close this question. It would make this reply easier to be found for other people who has the similar problem.

0 Votes 0 ·