Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

SCCM PS1 script for Application validation

$
0
0

Hello,

I am setting up APP-V and having a problem where a PS1 that is running is unsigned and I am getting an error that pre-req check is failing.

  Script Execution Returned :1, Error Message: File C:\WINDOWS\CCM\SystemTemp\10058648-5405-4f23-8aa7-f07fd649a2de.ps1 cannot
be loaded. The file C:\WINDOWS\CCM\SystemTemp\10058648-5405-4f23-8aa7-f07fd649a
2de.ps1 is not digitally signed. The script will not execute on the system. Ple
ase see "get-help about_signing" for more details..
At line:1 char:2
+ & <<<<  'C:\WINDOWS\CCM\SystemTemp\10058648-5405-4f23-8aa7-f07fd649a2de.ps1'
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
 
. [AppDT Id: ScopeId_07BE0050-1DAB-4F0B-BE99-524582FE38AF/DeploymentType_16c7b860-0acb-4b0f-85ba-fb360a76b442, Revision: 3]

On the system that the script is running I have ExecutionPolicy set to unrestricted, so what is deciding to run the script or not? Is it the agent, and if so, how do I allow it, or is it the PC? Here is the contents for the PS1, which appears to have worked for others.

$osresult = $null
 $os = (Get-WmiObject Win32_OperatingSystem).Name
 if ($os -like "*Windows 8*") {$osresult = "True"}
 if ($os -like "*Server 2012*") {$osresult = "True"}
 $hfchk = Get-WmiObject -Query "select HotFixID from Win32_QuickFixEngineering where HotFixID like 'KB2506143'" | foreach-object{Write-Host $_.HotfixID}
 $osresult


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>