Jump to content

Recommended Posts

Posted

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

Posted

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.

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...