05 03

How to write a registry script windows 7

how to write a registry script windows 7

  1. July 30th, 2005, 04:03 AM #1

    How to create a Registry Script ?

    Hi All,

    I found a file named "abc.reg". on executing it an entry is made into the registry.

    i tried creating one by editing a file in notepad and naming it as "xyz.reg" but on execution it said "The specified file is not a registry Script".

    Now how do i create a registry Script ?

    Thanks in advance.

  2. July 30th, 2005, 04:29 AM #2

    Re: How to create a Registry Script ?

    There are several versions. I think version 4 is compatible with most windows versions in use today. The content is like this:

    Code:

    REGEDIT4 [<dir1>] "<integer key name>"=dword:12345678 "<string key name>"="Something" [<dir2>] etc.
    The value of a dword should be expressed by 8 hexadecimal numbers. A string value should always be put between double quotes. Note that the name of a key is also placed between double quotes.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
  3. August 1st, 2005, 05:02 AM #3

    Question Re: How to create a Registry Script ?

    i know how to make a .reg file to add or modify a entry in the registry

    how to make one for removing a entry ?

  4. August 1st, 2005, 09:07 AM #4

    Re: How to create a Registry Script ?

    Take a look at this article on Regedit4.

    Gort...Klaatu, Barada Nikto!

  5. August 3rd, 2005, 12:05 AM #5

    Re: How to create a Registry Script ?

    Hi,

    I tried writing a script....

    The OS is Win2K
    File name is Putta.reg

    Contents of the file...

    REGEDIT4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
    "PF_AccessoriesName"="Something"

    On Double click it says "The specified file is not a registry script.you can import only registry files".

    what wrong ?

  6. August 3rd, 2005, 07:37 AM #6

    Re: How to create a Registry Script ?

    Did you check out that article? You must have missed this...

    Under Windows 2K and XP the first line is:
    Windows Registry Editor Version 5.00

    Gort...Klaatu, Barada Nikto!

  7. August 3rd, 2005, 03:38 PM #7

    Re: How to create a Registry Script ?

    Quote Originally Posted by Mike Harnad

    Did you check out that article? You must have missed this...

    It's backwards compatible. At least for version 4. As far as I know, version 4 can be used in Windows 9x and NT based, whereas version 5 is not supported by the former.

    Last edited by D_Drmmr; August 3rd, 2005 at 03:40 PM.

    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
  8. August 5th, 2005, 12:17 AM #8

    Re: How to create a Registry Script ?

    Hi,

    i did go through the article and used it as specified but still it does not work.

  9. November 27th, 2007, 02:35 AM #9

    Re: How to create a Registry Script ?

    Hi, you're true.

    the tip is to use notepad and to save the reg file as "ANSI" and not "unicode" in the "save as" window.

    regards.

  10. November 27th, 2007, 03:44 AM #10

    Re: How to create a Registry Script ?

    Quote Originally Posted by Kris_V

    REGEDIT4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
    "PF_AccessoriesName"="Something"

    On Double click it says "The specified file is not a registry script.you can import only registry files".

    what wrong ?

    I've created the file, and it has been ingested with no problem (see screenshot). Win2003 Server is my platform.
    Attached Images Attached Images

    Best regards,
    Igor

  11. November 28th, 2007, 02:51 AM #11

    Re: How to create a Registry Script ?

    Here's the simplest way to create a registry script. Supposing the settings are already in your registry, from regedit right click the key you need and select the Export option. It will create the script file automatically. That's all.

  12. March 16th, 2009, 02:31 PM #12

    Re: How to create a Registry Script ?

    I have tried many times to edit a .reg file that was created using Export... in regedit. I always ended up with a file that wouldn't import.
    Here's the weird trick: when you export a file from regedit, it generates a Unicode file.
    But when you edit that file, you have to save it as ASCII in order for it to import properly when you double-click it.
    I have no idea why this is, but using this simple trick just enabled me to successfully edit and re-import a .reg file for the first time.
    Good luck,
    -Roy

  13. February 23rd, 2014, 11:19 AM #13

    Re: How to create a Registry Script ?

    Hello,

    Could someone please tell me the errors in these scripts and possibly a reference link for writing the proper script syntax for both of these registry tools?

    Code:

    Windows Registry Editor version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "IMJPMIG8.1"=- and... REGEDIT 4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "IMJPMIG8.1"=-
    Thank you,
    - Dean -
  14. February 23rd, 2014, 12:07 PM #14

    Re: How to create a Registry Script ?

    Open the register editor (regedit), and export the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key.
    So you will see the proper format...


    BTW, what are you trying to achieve?

    Victor Nijegorodov
  15. February 23rd, 2014, 12:32 PM #15

    Re: How to create a Registry Script ?

    Hi Victor,

    Thanx for the quick reply. Actually, I'm not as concerned about finding the errors in these as I am locating a site that would show me the proper syntax for editing registry entries with the registry tools listed. I'm in the process of training to be a malware technician for an online site and this was one of the questions that came up. The registry keys are rhetorical, of course. Just an example I need to research. I'm finding lots of references to this, but can't seem to find the errors.

    For now, the registry is still like deciphering hieroglyphics to me. So finding info in an easy to understand format would be helpful. So if you have any references I can check, that would be wonderful. Not looking to be given the answers here, as that would teach me nothing. Just hoping to find some references I can research myself.

    Thanx for all the help.
    - Dean -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Forum Rules



Windows Mobile Development Center

Comments

  1. Wotuhagoxuqu

    I started my online script analysis class today and it feels really good to be officially taking some film classes

  2. Gocafeq

    I try to mark question by question not script by script. Makes it harder to gauge progress bit easier to mark consistently

  3. Lohovodifufaf

    He hasn"t uploaded Off The Script yet too, he has never been this late. I"m starting to get worried.

  4. Zifomibobepuc

    Back when I used to create ILT courses, used PPT vs word to create slides, instructor guide/script, and student guide all in one.

  5. Rugubofise

    Had a glass of wine. Went off script. Hilarious just to see the panic in their eyes.

  6. Mofazoyogucoz

    I guess someone scantily clad attacking Rubio in his dreams. But I have yet to read the script.

  7. Mokizexosomoz

    Because the script gets to a good conclusion faster for both parties in most cases? OTOH, Nice to see you is a bad start to a help script.

  8. Xevubovo

    This ghost keeps sayinig "z" out loud repeatedly, pretending to sleep.

  9. Nurakemozeg

    I stick to the script, I memorize the lines cause life is a movie that I"ve seen too many times

  10. Vuhareges

    Just give him the Dark Knight Rises script and change the names to Spider-Man characters.

  11. Lunewipucix

    17 years of most loved movie .An action hero can handle a logistic lv script wit so much ease.tnks to sir fr dis movie

  12. Bugikib

    Good luck on the trip! Stay on Script, don"t give the idiots back here anymore BS to try and use against u. V/R 16 YR Navy War Vet

  13. Hozifofapofajo

    Thought a new double act might be in order for the next tour. Here"s the first script. You don"t have to thank me

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>