Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.