Is there any batch command that will allow me to retrieve the value of the particular group policy in Windows server? Some thing like gpedit.msc did, but I want it in command line cause I want to convert those value to the format that I want.
Example: If I open gpedit.msc, then I navigate to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Restore files and directories then I can get the value of this policy.
Any ways in batch scripting can get me to this path and capture the value?