cancel
Showing results for 
Search instead for 
Did you mean: 
yostie
Level 7
Report Inappropriate Content
Message 1 of 3

Signed Powershell Scripts not running

Hi,

 

My code signed EXEs run without and issue, but my signed PS scripts get blocked.  Can someone please confirm whether MAC support signed PS scripts.

Cheers

 

Yostie 

2 Replies
McAfee Employee BEllis
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: Signed Powershell Scripts not running

What error message do you see in your s3diag or solidcore log when trying to run signed powershell.

 

Also can you give "sadmin ls -lax <path\powershell.ps1>" output

McAfee Support

Benjamin Ellis

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

yostie
Level 7
Report Inappropriate Content
Message 3 of 3

Re: Signed Powershell Scripts not running

Thanks for the quick reply Benjamin.  When running the signed powershell script, the event shown in Solicore is a Prevented File Execution.

 

I ran the "sadmin ls -lax <path\powershell.ps1>" output command on our signed PS script and the output is below.  It looks like MAC is unable to recognise the code signing cert within the PS script based on that output.  I also ran the same command on one of our signed EXEs, and it clearly identifies our cert.  Windows recognises our signed PS scripts as having a digital signature, when you right click on them and go to properties.

Output of sadmin ls may take some time as certificate extraction is in progress.
<?xml version="1.0" encoding="utf-8"?>
<solidifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="solidifier.xsd">
<list-solidified time="1557959204395" >
<file permission="rw-" file_type="script" checksum="8f4cb695e0298ba31abd9d0ac7c804188d570613" md5="6c12a179de9f4bed69dc23920c776eab" num_certificates="-1" file_size="0" file_version=" " file_original_name=" " file_company_name=" " file_product_name=" " file_product_version=" " application_name=" " product_guid=" " system_file="No" updater="No" file_mtime="0" cksum_auth="NA" auth_by_cert="No" allowed_by_elam="No" allow_by_name="No" ban_by_name="No" trusted_path="No" state="unso" execution_allowed="No" parent_process_name=" " parent_file_sha1_hash=" " parent_file_md5_hash=" " file_sha256_hash="3e04fdbcb98cc5e904b41e9870b104dce300475ea7f0e69c7a7dff6d9e647098" parent_workflow_id=" " inv_add_time="0" file_info_attr="0" reserved_1=" " file_base_name="Signed.ps1" path="C:\Users\User\Documents\Signed.ps1" >
</file>
<certs-list>
</certs-list>
</list-solidified>
</solidifier>

 

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community