Need command to display security options from secpol.msc to human readable format in command prompt.

Ranjeet Yadav 1 Reputation point
2022-08-17T10:17:35.97+00:00

• We are working on Windows OS hardening as per CIS Benchmark rules.
• We are using Windows server 2019 AWS EC2 Instance.;
• We have configured security options with the help of ansible and are trying to fetch values in command prompt
• We want to fetch security options data from secpol.msc to command prompt.
path: run -> secpol.msc -> local polices -> security options

Kindly help us with the command.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,767 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,732 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 32,076 Reputation points
    2022-08-19T17:07:10.097+00:00

    Years ago I used the MS Baseline Security Analyzer to review vulnerabilities on my servers. MS has discontinued support of MBSA.

    I have not used this new tool, but it appears that the Security Compliance Toolkit is the current preferred tool to do security analysis.

    https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-security-configuration-framework/security-compliance-toolkit-10

    0 comments No comments