Will doing "Run as administrator" on a .BAT file allow
regsvr32 enough privlieges to register a
The .bat file contains:
regsvr32 -u SomeOCX.ocx regsvr32 SomeOCX.ocx
Or, does the logged in user need to be an administrator?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Even if run from an account with administrator privileges (except for The built-in administror account), you will still need to use "run as administrator" to elevate the batch file, because of UAC restrictions. If you will be distributing this batch file or just want to make the process automatic, you may want to check out the Elevation powertoy, which lets you put lines in a batch file to cause it to be automatically elevated and prompt the user accordingly.