I need to run a batch file which needs to register a DLL. The DLL registration is failing because the Batch file is not starting the command prompt as “administrator”.
Is there any way to start the “Command Prompt” as administrator through the batch file.
Environment: Win7/Vista
You might have to use another batch file first to launch the second with admin rights.
In the first use
Upon further reading, you must be able to type in the password at the prompt. You cannot pipe the password as this feature was locked down for security reasons.
You may have more luck with psexec.