Sign in to follow this  
Followers 0
Roshith

RegRead with runas

2 posts in this topic

Hi,

I'm trying to take a value from registry. When I simply execute the script, it gives me @error as -1.

But it returns value if the compiled code is executed on a different credential (Different from the Logged on user).

This is what I'm trying

RegRead("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE")

I'm trying this on Win7

Any tips would be of great help

Thanks in advance

Roshith

Share this post


Link to post
Share on other sites



This thread looks to be similar to your problem:


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0