PSScriptPolicyTest script gets blocked by AppLocker in the event log. Why and what are those files?!
If you are using AppLocker (which you should) and have enabled the function “MSI and Scripts” in AppLocker to whitelist only signed PowerShell scripts you will get some errors in the event log even though your scripts are signed. Checking the event viewer log for AppLocker events you will see that the logged on user tried to run 2 different scripts starting with __PSScriptPolicyTest and the extensions .ps1 and psm1. The full name is something like __PSScriptPolicyTest_bavjba32.xjg.ps1 where the name is __PSScriptPolicyTest_..ps1/psm1Continue reading >