Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Missing user rights assignment entries for many security policies in list exported via secedit

$
0
0

Hello,

First of all, I posted this same question on The Official Scripting Guys Forum! but didn't get the answer to this exact question (even though I received a lot of useful relevant info). That is why I am posting here. This is a more appropriate forum for the question. (Also posted on Windows Server 2012 General two days ago and didn't get a response at all).

OK, question time:

I want to modify the user rights assignment for a local security policy. In the GUI, find User Rights Assignment as follows: Win+R -> Enter "secpol.msc" -> Go to Local Policies -> Go to User Rights Assignment.

So, to modify a particular use rights assignment via a script, I need to export the INF file using secedit, modify it and then configure using the modified file using secedit. To export the INF file, I am using:

secedit /export /db C:\Windows\security\database\secedit.sdb /mergedpolicy /cfg SecPolicy

Now, the problem is that the INF file exported doesn't have all the user rights assignments that I see in the GUI. For example, the policy "Restore files and directories" has users/groups in its settings but it doesn't show up in the INF file. In fact, most don't. Only five do and all these five have a different symbol next to them in the GUI. How are these policies different? What do I need to do to export all the policies?

EDIT: Adding screenshot of what I see:

Thanks!

-Rohan.




Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>