Posts Tagged ‘ Registry ’

*** Use Wildcards with REG DELETE (Almost) ***

2017/08/19
By
Modified: 2017/07/22
Registry-After-Deletion

I loved writing this article.  It tought me so much about power of good old batch commands.  Amazing! Say, I am trying to resolve a problem in a registry.  To isolate the problem, I need to delete hundreds of branches from an externally loaded Registry hive QQ\Classes from a parallel instance. For example, I need to delete all branches that start with letter “M”.  Doing it manually means hours of tedious clicking and possibility of disastrous “user” errors.  Can I do this with a batch file and REG DELETE? This article shows the way to do that.  Here is a plan of action:     First, I saw a quiet lonely post…

Read more »


Read Registry value into a batch variable

2017/07/06
By
Modified: 2017/06/25
Rue-Sainte-Catherine--2015-

Before I forget, let me share with you a fantastic way to read values from Registry into a batch file variable. Say you need to determine, what is the date format of this machine.  Normally you would read a value from HKEY_CURRENT_USER\Control Panel\International like this: REG QUERY "HKCU\Control Panel\International" /v sShortDate   That command will produce an output similar to this: HKEY_CURRENT_USER\Control Panel\International sShortDate    REG_SZ    M/d/yyyy But you do not need all that.  All you need is the string  “M/d/yyyy” (or “yyyy-MM-dd”).  To get just that string you need to skip to a second line and read third field on the last line.  How you can do that in a batch…

Read more »

Save and Restore Registry Security with Microsoft SubInACL

2017/04/29
By
Modified: 2017/03/03
SubInACL-Utility-in-Action

Problem You need to search and replace large registry databases with a set of new values.  You have a third-party utility to do the job, but this utility can only update values writable by administrator.  Thousands of registry keys are owned by NT Service\TrustedInstaller and protected even for Administrators.  What to do? If you simply use REGEDIT to take ownership and add full rights to Administrator to all registry at once, you will definitely achieve the goal, but you will ruin the intricate security permissions for dozens of system service accounts that populate registry security.  Windows will run but many features like Windows Update will become broken. Solution The plan of…

Read more »

How to Remove Search Box in IE8

2013/10/05
By
Modified: 2013/09/21
IE - Remove Search Box

Do you hate an extraneous search box that is cluttering your valuable real estate space in an IE address bar? This article was tested with IE8 on Windows XP and Windows 7.   Remove Search box using gpedit.msc If you are using IE8, there is a simple way to remove a search box using Group Policy Editor. Run Group Policy Editor ( gpedit.msc ), navigate to User Configuration Administrative Templates Windows Components Internet Explorer Prevent Internet Explorer Search box from displaying (entries can be sorted alphabetically) and enable the policy. Next time you are in Internet Explorer, the search box is gone.  All instances of IE must be closed before you…

Read more »