I just wonder how I can show the currently applied Security-Policy (not Group-Policy) from a machine from the command-line.
i know i can show the current applied Group-Policy with gpresult using
gpresult /r
Is there an equivalent for the security-policy? commandline or powershell?
I do not want do use secpol.msc
, because I need something for the commandline.
Answer
Why not just use SecEdit.exe, or LGPO.exe or download an use the PolicyFileEditor module from the MS PowerShellGallery.com
Manage Local Group Policy Objects from PowerShell and Desired State Configuration
Find-Module -Name 'PolicyFileEditor' |
Format-Table -AutoSize
No comments:
Post a Comment