Showing results for 
Search instead for 
Did you mean: 

Whitelisting PowerShell (.ps1) files with certificates

I successfully added a certificate to the whitelist. It works for .exe files. However, when I sign a .ps1 file with the same certificate, McAfee continues to block it. Is there a known limitation, or something I'm doing wrong?

I've tried launching it from File Explorer and from a Command Line.

1 Reply
Level 10
Report Inappropriate Content
Message 2 of 2

Re: Whitelisting PowerShell (.ps1) files with certificates

Are you running the script from a networkdrive?

We experienced the same when running a signed powershell from a networkdrive. Apperently the deny is based on the script being on a non-trusted network path. not on the signer with which the script is signed.

According to McAfee support this is "works as designed". So fix would be adding the network path as trusted directory.

Member Rewards
McAfee Community rewards active and helpful members just like you. Click here to take a look at the first community members who received a special reward and were recognized by McAfee leader, Aneel Jaeel, for their participation and trusted knowledge in the community.