Since 2 days I try to create a VisualStudio application, which should be trusted inside of applocker rule. Unfortunatelly if I sign my exe with own created signature, it cannot be used within applocker wizard, there is a error message that the publisher informations cannot be extracted from my exe file.
Creating a rule based on Microsoft files unter C:\Windows\ works for all exe, ps1 files independend if the files are signed or not.
I figured out, there is a poweshell command: Get-AppLockerFileInformation to get the publisher information more easier.
e.g. If I copy the C:\Windows\WinSxS\wow64_microsoft.powershell.pester_31bf3856ad364e35_10.0.19041.1_none_9478227a478f23d5\Add-Numbers.ps1 to C:\Temp\ folder and run the
Get-AppLockerFileInformation -Directory C:\Temp -Recurse -FileType exe, script
command, then the result is:
Path Publisher Hash
---- --------- ----
%OSDRIVE%\TEMP\ADD-NUMBERS.PS1 O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\,0.0.0.0 S...
For all exe, ps1 files created by myself the publisher is empty. Please note that the ADD-NUMBERS.PS1 has only 55 bytes and is not signed at all. So the publisher information has to be somehow hidden...
Continuation from my comment about guided knowledge from the help files...
'signing PowerShell script'
Hits