Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Will doing "Run as administrator" on a .BAT file allow regsvr32 enough privlieges to register a DLL or OCX?

The .bat file contains:

regsvr32 -u SomeOCX.ocx
regsvr32 SomeOCX.ocx

Or, does the logged in user need to be an administrator?

share|improve this question
up vote 2 down vote accepted

There can be issues with running .bat files by right-clicking and choosing Run as Administrator. Another option is to start an elevated command prompt and execute the .bat file from there.

share|improve this answer

if you not administrator then you cannot do "Run as administrator" (but you allways can use "RunAs")

and ofcouse "Run as administrator" gives you all necessary rights to do "regsvr32"

share|improve this answer

run as administrator should allow it to register as long as it is setup by a domain administrator.

Did you tested it ?

share|improve this answer
What needs to be setup by a domain administrator? – CJ7 Jun 4 '10 at 8:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.