EzDevInfo.com

regedit interview questions

Top regedit frequently asked interview questions

Set "never combine" in Windows 7 using the registry?

How do i set task bar buttons to "never combine" using the registry?


Source: (StackOverflow)

Regedit.exe import fails to pick up "text" field

I am migrating from Windows XP to Windows 7. I use database software (Aginity Workbench), which allows a user to save common queries called "Code Snippets". These snippets are stored in the registry: HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets

The registry entries are structured as follows, where a "Text" field stores the actual query : XP_example

A portion of the .reg text looks like this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets]

[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ]

[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ\1] "Trigger"="sf" "Text"="select *

from

limit 1000;

" "CaretPosition"=dword:00000010

[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ\10] "Trigger"="rollnode" "Text"="SELECT mom.varReportId, mom.nodeId, mom.rollupTypeId, roll.riskFactorGroup, roll.effectType, mom.VAR, mom.mean FROM Moments mom, RollupTypeMapping roll WHERE mom.businessDate = (select businessDate from SysConfig) AND roll.businessDate = mom.businessDate AND mom.nodeId = 260591 AND mom.varReportId = 'DGV_BT_1D_CAD' AND roll.rollupTypeId = mom.rollupTypeId ORDER BY mom.nodeId, roll.rollupTypeId" "CaretPosition"=dword:0000018c

... and from Notepad++, showing linebreak details: registry_linebreaks

I attempted to migrate the snippets by:

  1. in regedit.exe on XP >> export "Code Snippets" branch
  2. in regexit.exe on W7 >> import the .reg file I save in #1

Windows pops up a message saying the registry was updated successfully, and in fact I can see new entries show up in the registry. However, almost all of the new entries are missing the critical "Text" field. For example, here is the important record "10" from above: W7_example

Can anyone help explain how to resolve this?

I noticed exactly one record that seemed to contain the Text field, and was populated correctly in W7. I have no idea what is different about this one, or why Windows would treat it differently. But it does show me a working example, and that the import should be possible.

Windows XP XP_text

Windows 7 W7_text


Source: (StackOverflow)

Advertisements

How can I recover from deleting regedit?

I erased my regedit by mistake. I deleted it by typing it into the search bar in Windows 7, right-clicking and selecting "delete." Now when I type regedit in the search bar, it shows no results. How can I get it back?


Source: (StackOverflow)

Easiest way to update a Registry value?

While using Linux I've grown accustomed to one-liners when I search online to fix annoying defaults. I know that these one liners could be very dangerous so I always make sure I know what they are doing before running them.

At the same time, I hate having to update windows registry keys because I need to open up regedit and navigate The Tree.

Is there an easy way to edit a specific registry value?

Something like:

regupdate path type newvalue

Source: (StackOverflow)

Command Prompt, msconfig, regedit close immediately after opening

cmd.exe, regedit, msconfig and other system utilities close immediately after I open them. After restarting Windows, the folder option "Hide extensions for known file types" is automatically checked.

All of the utilities seem okay in Safe Mode. I think that my copy of Windows is probably infected by some kind of malware but I'm not able to find any.

Is there anything in registry I can change to get these settings back to their normal form?


Source: (StackOverflow)

Registry access denied

I edited ["HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"] and set the administrator permissions to "Deny".

Now, when I try to open any file it gives me this message:

"Your Internet security settings prevented one or more files from being opened".

Any solutions?


Source: (StackOverflow)

IE 9 home page is hijacked by avg

I definitely know how to change the home page in Internet Explorer (Tools -> Options -> General). The problem is, no matter what I put there, it never changes. Stop/restart Internet Explorer and the old home page is back.

I did some research to see if there is a registry key that I could tweak to get the home page to set properly. I changed the start page registry key and refreshed the view and the start page key (without even restarting regedit) was reset back to its original value.

Now I'm a little concerned. Maybe there's some virus I can't detect on my system?

Internet Explorer 9.0.8112.16421
Windows 7 Pro SP 1 x64

Source: (StackOverflow)

on Windows XP, how can I remove (NOT hide) a system tray icon without closing the process?

So I leave uTorrent running on the system tray when I go to work, but every time my brother gets on the pc he closes it. So by the time I get back I've lost 7-8 hours of download. Most infuriating.

I want a way to remove the icon from the system tray, while maintaining the process running.

For self-educational purposes, I'd like to end up with something like this:

A batch file that when executed, checks whether some registry key is true or false or whatever, and depending on that it launches one or other .reg file that would have some effect on the icon. The practical consequence would be that launching the bat file would toggle the icon's existence on and off.

Any help?

(BTW, I want to be able to do this same thing with other programs, like eMule, or even the nvidia control panel icon, just for fun)


Source: (StackOverflow)

How to edit registry from Vista recovery tool?

How can i edit the registry from the Windows Vista recovery tool?

The recovery tool provides 5 options:

  • Startup Repair
  • System Restore
  • Windows Complete PC Restore
  • Windows Memory Diagnostic Tool
  • Command Prompt

i can click Command Prompt, from where i can type:

X:\Sources>regedit

And RegEdit appears. But it is editing the registry of the mini-Windows environment that is running the recovery tool - it's not my registry.

i need to edit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\xx-YY

and change it to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\en-US


What i tried

i tried creating a dummy key:

HKCU\Software\TempTestFoo

and then using File -> Import to import the registry hive file:

C:\WINDOWS\system32\config\system

and it does, it brings in every key, except CurrentControlSet:

\CurrentControlSet001
\CurrentControlSet002
\CurrentControlSet003
\LastKnownGoodRecovery
\MountedDevices
\Select
\Setup
\WPA

Source: (StackOverflow)

Force IE9 to always start InPrivate browsing mode?

I don't mean creating a shortcut that includes the -private option. I was wondering if there was a known reg edit that could be toggled to always have IE start in InPrivate mode no matter how a user starts it?


Source: (StackOverflow)

Turn Windows feature on or off is missing, Windows XP

I'm an administrator on the machine but the option under Control Panel -> Add Or Remove Programs is missing. Does anyone know where the registry key is to enable this?


Source: (StackOverflow)

Autorun for PowerShell

I have created some aliases (doskey), saved them to a file and added AutoRun value (pointing that file) for cmd.exe at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

I would like to do the same with PowerShell. Is there any registry value for PowerShell which points to commands that will be run each time I start PowerShell?


Source: (StackOverflow)

All files trying to start in Notepad [duplicate]

Possible Duplicate:
Window7 troubleshooting .exe is not opening

This question has been asked, but the solutions given were worthless to me because ALL files are trying to open in Notepad. I mistakenly associated all exe files with Notepad and everything is trying to open within Notepad now. That includes regedit, so suggesting I use regedit to doctor files does not work (cmd window will not open from Winkey + R - Run).

It also includes any program I download to fix the issue. I also can not right click and choose Open With because that is not a given option when right clicking on a majority of files, at least none of the exe files I want to start. Yes, I tried it on the program files, not the shortcut. I also can not use System Restore because it, too, tries to open in Notepad. I've been banging my head uselessly on this for hours. Could someone help me out?


Source: (StackOverflow)

How can I associate multiple context menu types for one file extension in the registry?

I want to add custom context menu options for certain file extensions (like .zip-files) for a program I'm developing. However on many (but not all) PCs my software is going to be installed on 7-Zip is installed as well and therefore [HKEY_CLASSES_ROOT.zip] is referring to [HKEY_CLASSES_ROOT\7-Zip.zip] in the registry.

As I don't want to tamper with the original 7-Zip installation I just want to add my context menu options on top. However entries in [HKEY_CLASSES_ROOT.zip\shell] are without effect and I don't know how I could link [HKEY_CLASSES_ROOT.zip] to [HKEY_CLASSES_ROOT\MyApp.zip] because the default value of [HKEY_CLASSES_ROOT.zip] is already being used by 7-Zip.

Any help would be greatly appreciated :)


Source: (StackOverflow)

How do I change wallpaper real time regedit commands?

What I want is to programatically change Desktop Wallpaper every few hours. I'm using a batch file (.bat) and don't want to use other languages or programs, just the pre-installed stuff with Windows XP. I've already made my script that will modify values in the Registry

reg add "HKCU\Control Panel\Desktop" /v Wallpaper /d "C:\Pictures\picture1.jpg"

The problem is that the script is not taking effect in real time even with this command:

RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

I need to reboot first for it to take effect.

If I'm going to use Display Properties, it'll show at once. What I've noticed is that changes will take effect real time if it's a .bmp file and not for .jpg images.

Second option is to convert JPG to 24-bit BMP files (to look exactly the same, but will triple the file size), but I'm hoping a better way.

I've already Googled things but no avail. I hope you (the helpful reader) can post any .bat or even .vbs script to change Desktop Wallpaper instantly with JPG pictures. I hope there's an answer without installing other apps or scripts.


Source: (StackOverflow)