PSM Hardening failing
139
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:51 PM
Symptom
When running the PSM Hardening, the script is failing to complete successfully.
Errors are seen in the PSM Hardening log:
===
ERR - RunTheHardeningScript.psm1 failed to run
ERR - Security error.
===
Environment
11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0
PSM
Cause
The error you are receiving in the hardening log, is usually caused when the user running the script does not have the required permissions to execute.
Resolution
Steps to check:
- Check the execution policy for PowerShell is set to RemoteSigned
- Run PowerShell with Administrative rights.
- Make sure the user running the script has domain admin/local admin rights.
- Remove/Disable any domain GPOs applied to the PSM server prior to running the hardening script until the hardening has completed successfully. After, you can then reapply the GPO settings.