Application deployment

0x87D00327: Script is not signed

The client refused to run a PowerShell script because it has no valid signature and the execution policy requires one.

Hex code0x87D00327
Decimal-2016410841
Logs to readAppDiscovery.log, AppIntentEval.log, CIAgent.log

What 0x87D00327 means

Configuration Manager shows "Script is not signed". The decimal form is -2016410841. You see it in Software Center, in the deployment status in the console, and in compliance baseline reports.

The client runs PowerShell scripts for detection methods, global conditions and compliance settings. It runs them with the execution policy from the client settings. If that policy requires signed scripts and yours is not signed, the client stops with this error.

Common causes

  • The client setting PowerShell execution policy is set to All Signed and the script has no signature.
  • The script is signed, but the client does not trust the code signing certificate.
  • Someone edited the script after it was signed, so the signature is no longer valid.
  • A Group Policy sets a stricter PowerShell execution policy than the client setting.

How to fix 0x87D00327

  1. Check the client setting

    In the console, go to Administration > Client Settings. Open the settings that apply to the client and select Computer Agent. Find PowerShell execution policy. With Bypass, the client runs unsigned scripts. With All Signed, every script needs a trusted signature.

    Change the setting only if your security rules allow it. Then run Machine Policy Retrieval & Evaluation Cycle on the client.

  2. Sign the script

    If you must keep All Signed, sign the script with a code signing certificate. Paste the signed script, with its signature block, into the detection method or the compliance setting. Sign it again after every change.

  3. Trust the signing certificate on the clients

    The client must trust the certificate. Deploy the code signing certificate to the Trusted Publishers store of the computers. Deploy its root certificate to the Trusted Root Certification Authorities store if it is not there yet.

  4. Check for a Group Policy override

    Run the command below on the client. A value in the MachinePolicy or UserPolicy row comes from Group Policy. Talk to the owner of that policy if it blocks your scripts.

Commands that help

Show the execution policy at every scope · PowerShell
Get-ExecutionPolicy -List
Sign a script and check the signature · PowerShell
$cert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
Set-AuthenticodeSignature -FilePath 'C:\Temp\Detect.ps1' -Certificate $cert
Get-AuthenticodeSignature -FilePath 'C:\Temp\Detect.ps1' | Select-Object Status, StatusMessage
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.