Jump to content

Recommended Posts

Posted

Hello,

Everything is in the title !

Without "#requireAdmin", Regwrite doesn't work at all.

With "#requireAdmin", Regwrite works, only if the user accept the privilege elevation.

Is there a way to write in the registry without asking something to the user on a X64 platform ?

I read many posts about "X64" and "Regwrite" in this forum but I didn't find a solution.

Thanks for your help.

Mag.

Posted

Afaik Admin is required on Vista+ to write to the HKEY_LOCAL_MACHINE branch due to security considerations implemented with UAC, writing to the other branches like e.g. HKEY_CURRENT_USER should work fine without the elevation.

Posted

Afaik Admin is required on Vista+ to write to the HKEY_LOCAL_MACHINE branch due to security considerations implemented with UAC, writing to the other branches like e.g. HKEY_CURRENT_USER should work fine without the elevation.

Hello Kafu,

Thanks for your reply.

I didn't try this branch (HKCU) !

I'll try and tell if it works.

Thanks again.

Mag.

Posted

Hello Kafu,

Thanks for your reply.

I didn't try this branch (HKCU) !

I'll try and tell if it works.

Thanks again.

Mag.

wow, this is very strange, I have a similar problem.

Before I updated windows 7 to SP1, I would use #RequireAdmin to make changes to certain reg keys, after the update, if I use #RequireAdmin, nothing happens and the script hangs unless I don't use #RequireAdmin, it seems to happen randomly and I don't get it, I've been fiddling around with it for a day now only to discover that the update involves fixes to how UAC works.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...