Windows: How can I use the command line to set registry permissions

Beems

OS: Windows 7
Desirable Method: Command Line
Other acceptable methods: VBScript

How can I use the command line to set registry permissions? I found the REGINI utility, but I'm not having any luck since the documentation is really not user-friendly. I need to set the permissions on the following to prevent the user from editing. Basically, I need to set this as read-only:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData

The ideal permissions would allow SYSTEM and Administrator Full Control, but set as Read Only for everyone else (or at least non-Admins).

For a little background, this is where, in IE 11 the Compatibility View sites are held (in binary nonetheless). I'm injecting that binary glob, but because we have the option set in IE to clear browsing history upon exit, that 'ClearableListData' value is also purged. Stupid, I know, so I need to prevent users from modifying the value.

EDIT: Here's a Connect post describing the problem of IE purging the list: https://connect.microsoft.com/IE/feedback/details/798447/compatibility-view-list-is-lost-if-browsing-history-is-erased-or-site-uses-meta-tag

Thanks, Beems

Wes Sayeed

This is an example of the XY Problem

The correct way to lock down this setting is to use Group Policy. You don't mention if this computer is on a domain or not, but if it isn't, you can use the Local Group Policy Editor for the same effect. Click on Start -> Run and type gpedit.msc to open the editor.

The specific setting you're after is under Computer Configuration -> Administrative Templates -> Windows Components -> Internet Explorer -> Compatibility View. The setting is called Use Policy list of Internet Explorer 7 sites.

The sites that appear on this list will always open in Compatibility View, and doing a browser reset will not change that setting at all. The setting survives because enforced Group Policies are located in a different place in the Registry and are unaffected by the bug listed in that Microsoft article you linked to.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Windows: How can I use the command line to set registry permissions

来自分类Dev

How can I run a specific 'thread group' in a JMeter 'test plan' from the command line?

来自分类Dev

How can I use sed to find the lines that start with "X", then find and replace inside this line using Perl?

来自分类Dev

I can't use Windows PowerShell commands

来自分类Dev

How can I repair the disk by command?

来自分类Dev

How can I highlight a line in TMemo?

来自分类Dev

How to configure command line git to use ssh key

来自分类Dev

How can I set the jenkins authentication token?

来自分类Dev

How do I get my command line utility to update one line instead of printing multiple lines?

来自分类Dev

How can I use the constraints in native webrtc?

来自分类Dev

How can I save a <template> for a second use?

来自分类Dev

SWIFT: How I can use subscriberCellularProviderDidUpdateNotifier with Swift

来自分类Dev

How can I force Windows Server 2008 R2 to use a specific intermediate certificate over TLS for RDP?

来自分类Dev

How can I unit test Eclipse Command Handlers?

来自分类Dev

How can I combine a line and scatter on same plotly chart?

来自分类Dev

How to use Bash (sed or any other) command to insert at EOF-nth line

来自分类Dev

Can a WinForms program be run from command line?

来自分类Dev

How can I override the set axios override defaults on specific requests?

来自分类Dev

How can I set environment variable for runComment() in Rhino?

来自分类Dev

How can I set element for entire width of the page? (Android)

来自分类Dev

How do I iterate through each line of a command's output in bash?

来自分类Dev

How do I get to all of the command line options described inside of clang?

来自分类Dev

How do I run a LibreOffice macro from the command line without the GUI?

来自分类Dev

How can I enable or disable a windows service in .NET?

来自分类Dev

How can I reinstall Windows 7 on a laptop without the drivers CD?

来自分类Dev

How do I set up a custom navbar and a custom collapse? The right does not line up in mobile

来自分类Dev

How can I use Laravel form model binding with bootstrap?

来自分类Dev

How can I use a ternary operator for Graphql frontmatter?

来自分类Dev

How can I use urllib.request.urlretrieve with python 2.7

Related 相关文章

  1. 1

    Windows: How can I use the command line to set registry permissions

  2. 2

    How can I run a specific 'thread group' in a JMeter 'test plan' from the command line?

  3. 3

    How can I use sed to find the lines that start with "X", then find and replace inside this line using Perl?

  4. 4

    I can't use Windows PowerShell commands

  5. 5

    How can I repair the disk by command?

  6. 6

    How can I highlight a line in TMemo?

  7. 7

    How to configure command line git to use ssh key

  8. 8

    How can I set the jenkins authentication token?

  9. 9

    How do I get my command line utility to update one line instead of printing multiple lines?

  10. 10

    How can I use the constraints in native webrtc?

  11. 11

    How can I save a <template> for a second use?

  12. 12

    SWIFT: How I can use subscriberCellularProviderDidUpdateNotifier with Swift

  13. 13

    How can I force Windows Server 2008 R2 to use a specific intermediate certificate over TLS for RDP?

  14. 14

    How can I unit test Eclipse Command Handlers?

  15. 15

    How can I combine a line and scatter on same plotly chart?

  16. 16

    How to use Bash (sed or any other) command to insert at EOF-nth line

  17. 17

    Can a WinForms program be run from command line?

  18. 18

    How can I override the set axios override defaults on specific requests?

  19. 19

    How can I set environment variable for runComment() in Rhino?

  20. 20

    How can I set element for entire width of the page? (Android)

  21. 21

    How do I iterate through each line of a command's output in bash?

  22. 22

    How do I get to all of the command line options described inside of clang?

  23. 23

    How do I run a LibreOffice macro from the command line without the GUI?

  24. 24

    How can I enable or disable a windows service in .NET?

  25. 25

    How can I reinstall Windows 7 on a laptop without the drivers CD?

  26. 26

    How do I set up a custom navbar and a custom collapse? The right does not line up in mobile

  27. 27

    How can I use Laravel form model binding with bootstrap?

  28. 28

    How can I use a ternary operator for Graphql frontmatter?

  29. 29

    How can I use urllib.request.urlretrieve with python 2.7

热门标签

归档