"The specified file is not a registry script. You can import only registry files

M

Mark

Has anyone found a cause/solution to the following error
message?

"The specified file is not a registry script. You can
import only registry files"

I'm seeing this on a small number of win2k clients,
running a regedit -s regfile.reg via login script.
Hundreds of clients are fine, but a small number (<10) are
failing with the message above.

Thanks in advance for any helpful responses.
 
W

Wayne Tilton

Has anyone found a cause/solution to the following error
message?

"The specified file is not a registry script. You can
import only registry files"

I'm seeing this on a small number of win2k clients,
running a regedit -s regfile.reg via login script.
Hundreds of clients are fine, but a small number (<10) are
failing with the message above.

Thanks in advance for any helpful responses.

I just had the same thing happen to 6 out of 18,000 Win2k pro machine.
It turned out to be an old copy of regedit.exe in the \winnt\system32
directory. regedit.exe should actually reside in \winnt (or wherever %
systemroot% points) but \winnt\system32 is 1st in the path, so when the
V4 version of regedit.exe ran, it choaked on the version 5 regedit file.

The solution was twofold; remove the bogus regedit.exe from \winnt
\system32 and change the .reg file from V5 down to V4 format (change
"Windows Registry Editor Version 5.00" to "REGEDIT4" in the .reg file).

Wayne
 
G

Guest

Outstanding response Wayne!

I'll apply your solution tomorrow and report the outcome.

Thanks.
 
G

Guest

Issue resolved. An old copy of regedit.exe was indeed
found at c:\winnt\system32. This was removed and the v5
copy at c:\winnt was allowed to process the script.

Thanks again Wayne.

Mark.
 
T

Torgeir Bakken (MVP)

Wayne said:
The solution was twofold; remove the bogus regedit.exe from \winnt
\system32 and change the .reg file from V5 down to V4 format (change
"Windows Registry Editor Version 5.00" to "REGEDIT4" in the .reg file).

Note that V5 registry files are in Unicode format while V4 is in ASCII, so this
should also be changed in addition to the header text when converting a V5 file
to V4...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top