Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: .bat reg import gives error accessing the registry

29 Jan 2014   #11
MilesAhead

Windows 7 32 bit
 
 

You can use DelayedCuts from my page here:
Miles Ahead Software

to run a program as administrator at logon. DelayedCuts requires shortcuts to be added to the delay Gui. That way all program switches and options, such as Run As Administrator, are set in the shortcut. When you make a shortcut for the batch file make sure to right click and in Compatibility Tab, click Run As Administrator.

Once you add shortcuts and click Save it makes a shortcut to the DelayedLoad.exe program in the user's StartUp Folder. DelayedLoad.exe actually runs the delayed programs. It displays a small Gui that shows the icon, delay countdown, and name of the next program that will be run.


My System SpecsSystem Spec
.
29 Jan 2014   #12
aVco

Windows 7 Ultimate x64
 
 

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce

i can modify anything there not automatically though (also within the CMD...)
is there anything i can do?
My System SpecsSystem Spec
29 Jan 2014   #13
aVco

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
You can use DelayedCuts from my page here:
Miles Ahead Software

to run a program as administrator at logon. DelayedCuts requires shortcuts to be added to the delay Gui. That way all program switches and options, such as Run As Administrator, are set in the shortcut. When you make a shortcut for the batch file make sure to right click and in Compatibility Tab, click Run As Administrator.

Once you add shortcuts and click Save it makes a shortcut to the DelayedLoad.exe program in the user's StartUp Folder. DelayedLoad.exe actually runs the delayed programs. It displays a small Gui that shows the icon, delay countdown, and name of the next program that will be run.
sounds nice, dont know if it could help me though,
does it work on safe mode?
My System SpecsSystem Spec
.

29 Jan 2014   #14
MilesAhead

Windows 7 32 bit
 
 

Quote:
sounds nice, dont know if it could help me though,
does it work on safe mode?
Sorry. I just tried it and it does not bypass the UAC prompt. I just had UAC slider set all the way down. I didn't write it to bypass UAC but to space out program loading, and also to load programs in order, at logon. Sorry for the "false alarm."
My System SpecsSystem Spec
29 Jan 2014   #15
aVco

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
Quote:
sounds nice, dont know if it could help me though,
does it work on safe mode?
Sorry. I just tried it and it does not bypass the UAC prompt. I just had UAC slider set all the way down. I didn't write it to bypass UAC but to space out program loading, and also to load programs in order, at logon. Sorry for the "false alarm."
thanks anyway, at least youre trying
My System SpecsSystem Spec
29 Jan 2014   #16
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by aVco View Post
Quote   Quote: Originally Posted by UsernameIssues View Post
We will need details...
What program are you talking about?
What info needs to be changed in the registry?
Does the info need to be changed before the program starts?

...before we can continue to help.
well, there is a way to enter safemode within msconfig and so id like to be able to run
a batch file after marking the V, that will disable that option from within the registry right after
i get into the safemode.
theres no info needs to be changed, only added

if any more information is needed, please ask

i didnt explain it before because it sounds a bit complicated, but still after everything i have tried the
problem remains when i try to add or import.
The post quoted above sounded simple enough.
It sounded like you...
...manually set msconfig to boot to the safe mode
...manually restart the computer
...want some process to automatically undo that "boot to safe mode" setting.


But then you tell me that your batch file modifies HKLM's Runonce key...
...so I'm back to being lost.


In you first post, you stated:
"im using the code : reg import *****.reg"

Can you post that reg file?
My System SpecsSystem Spec
29 Jan 2014   #17
aVco

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
Quote   Quote: Originally Posted by aVco View Post
Quote   Quote: Originally Posted by UsernameIssues View Post
We will need details...
What program are you talking about?
What info needs to be changed in the registry?
Does the info need to be changed before the program starts?

...before we can continue to help.
well, there is a way to enter safemode within msconfig and so id like to be able to run
a batch file after marking the V, that will disable that option from within the registry right after
i get into the safemode.
theres no info needs to be changed, only added

if any more information is needed, please ask

i didnt explain it before because it sounds a bit complicated, but still after everything i have tried the
problem remains when i try to add or import.
The post quoted above sounded simple enough.
It sounded like you...
...manually set msconfig to boot to the safe mode
...manually restart the computer
...want some process to automatically undo that "boot to safe mode" setting.


But then you tell me that your batch file modifies HKLM's Runonce key...
...so I'm back to being lost.


In you first post, you stated:
"im using the code : reg import *****.reg"

Can you post that reg file?
yes i can post it but why does it matter man? the reg file is a part of sequence that makes sure
the safemode option is unchecked.
if its too confusing i will try to explain again:
im trying to run a batch file with the only command of "reg import safemode.reg" and
i get the error, i cant find out why it gives me that error.
runonce is the only place one can startup a program from within safe mode.
i have posted here because im just trying to get the process shortened.
its just one simply code that i failed with.
i would like to not get back into msconfig via 'run' or whatever and not uncheck that option...

im sorry if its too much confusing, we can just let it go
My System SpecsSystem Spec
29 Jan 2014   #18
UsernameIssues

W7 Pro SP1 64bit
 
 

I suggested that you do not have permissions to write to the area of the registry.

I then asked what area of the registry that you are modifying.

Your reply was LM's RunOnce.

I guess that I was not clear in asking my question...
...so I figured that the simplest way to get the info is to see the reg file.

What is the reg Value in the reg file?
My System SpecsSystem Spec
Reply

 .bat reg import gives error accessing the registry




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Unable to import <filename>.reg: Acces to the registry denied
Hello, This is a pretty long story...: So, I have program called CCleaner, it is a fine tool which can clean up your browser cookies, temporary files, etc. It can also scan for errors in the registry and remove them, however, this is not always safe, so I always make a backup whenever I mess...
Performance & Maintenance
Windows won't load after failed registry backup-Import
Hello, I tried to import an entire registry backup, I received an error message similar to this one:" Error accessing the registry.". then, Via "regedit" I tried to give permissions to my WinUser, (giving full control ). I still received the same message, so I restarted my pc,And now...
General Discussion
Error Accessing the Registry in regedit.
Running .reg file gives this error. In Regedit I also cannot create a new key (to add the contents of the .reg file manually.) I have Full Control in permissions for HKEY_USERS.
General Discussion
Can t import registry from a x32 application to my x64 OS
Hi all this is my first post in the forum.I have windows 7 professional x64.I am using an application called smart install maker Smart Install Maker - Custom setup files made easy.This software generally creates setups (i make exe files).It s a x32 application.I create setups where i copy some...
Software
Error accessing the registry
Hi all and merry hollidays. I got a problem you may be able to help me... Yesterday I did a fresh installation of my W7 professional. Before that I backup the things I know I need. One ot them was to backup a branch from the registry to keep some details for a program I have. Today I...
Installation & Setup
Is there any way to tell who is accessing the registry?
Log Name: Application Source: Microsoft-Windows-User Profiles Service Date: 8/26/2009 6:00:03 AM Event ID: 1530 Task Category: None Level: Warning Keywords: User: SYSTEM Computer: Home01 Description:
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App