Jump to content
Sign in to follow this  
hamohd70

regedit not starting under vista

Recommended Posts

hamohd70

I'm trying to start regedit under vista but it is refusing to start.

The code i'm using is simple :

RunWait("regedit")

the same code is running fine under win XP.

any help please ?

Thanks

Share this post


Link to post
Share on other sites
MHz

XP may allow you to run regedit without admin privileges but Vista and later OSes may not. You may need to raise your privileges to admin to run regedit which is probably a good thing for the sake of security. :mellow:

Use #RequireAdmin or look at RunAs() or RunAsWait() in the helpfile.

#RequireAdmin
RunWait("regedit")

Now you may see the UAC prompt which can allow your script to run with admin privileges in which running regedit will inherit admin privileges as well.

Share this post


Link to post
Share on other sites
hamohd70

thanks for the help it worked fine both ways.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.