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?
|
Will doing "Run as administrator" on a .BAT file allow The .bat file contains:
Or, does the logged in user need to be an administrator? |
||||
|
|
|
"Run as administrator" should provide sufficient permissions if the user account can use that function. |
|||||
|
|
There can be difficulties with running |
|||
|
|
|
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. |
|||||
|