we need to use command to read data from secpol.msc using command prompt to display security options

Liji Mathew 1 Reputation point
2022-07-19T05:13:11.217+00:00

we are working on Windows Hardening as per CIS Benchmark Guidelines we want to know the command in the command prompt for fetch values from secpol.msc local security policy (to display security options)

path : run -> secpol.msc -> local polices -> security options

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,947 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Limitless Technology 39,696 Reputation points
    2022-07-19T15:26:35.87+00:00

    Hi there,

    There are some GPO commands to do this but you may have to export the policy (secedit /export /cfg c:\temp\secpol.cfg) and parse through it.

    Group Policy Cmdlets in Windows PowerShell c

    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee461027(v=technet.10)?redirectedfrom=MSDN
    Local Security Policy List

    https://social.technet.microsoft.com/Forums/en-US/ed350134-5d70-4e55-ab45-028aa00ae690/local-security-policy-list?forum=winserverpowershell

    I hope this information helps. If you have any questions please let me know and I will be glad to help you out.

    ---------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--


  2. Liji Mathew 1 Reputation point
    2022-07-26T05:29:09.543+00:00

    Hi,

    I was tried once created temp folder but got this output, this is not an actual output.  
    
    1. This is the screenshot of after getting this output, Once created temp folder -> 224751-image.png
    2. This is the screenshot of Actual Output, we needs this output -> 224736-image.png
    0 comments No comments

  3. MotoX80 34,681 Reputation points
    2022-07-26T11:39:45.237+00:00

    Look in the file that you told secedit to create.

    224873-image.png


  4. Liji Mathew 1 Reputation point
    2022-08-01T12:46:40.71+00:00

    Hi,

    notepad.exe is running, but it doesn't shows our expected output.

    some other command means need to try with more commands and need to check whether its getting expected output or not.

    Below mention screenshot is the expected output,

    226670-image.png


  5. Liji Mathew 1 Reputation point
    2022-08-01T14:35:33.91+00:00

    Hi ,

    no MotoX80, we need the output of the particular data in the screenshot , not how to take screenshot okay, I was clearly mention with yellow colour. please read carefully no need screenshot, I am just taken from the screenshot for your awareness.

    here we need to use command to read data from secpol.msc using command prompt to display security options.

    we are working on Windows Hardening, we want to know the command in the command prompt for fetch values from secpol.msc local security policy (to display security options)

    Thank You.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.