command prompt with administrator privilages
Hi, I have a batch file that we need to run for some specific work. It need to be run with built-in administrator account. When I try to run the batch file by right clicking and selecting "run as administrator", It works well. Now I want to do this by a command. is there any command that can work for me? Or how can I run the batch file without right clicking on to the file. Thanks in advance........ Vipin Tyagi (MCSE 2003) Windows Admin
April 14th, 2012 7:28am

1. You can run scheduled task with elevated rights. 2. Here are two solutions http://maximumpcguides.com/windows-vista/run-a-program-with-administrative-privileges-without-uac-prompts/ VBS Set WshShell = WScript.CreateObject("WScript.Shell") If WScript.Arguments.length = 0 Then Set ObjShell = CreateObject("Shell.Application") ObjShell.ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """" & " RunAsAdministrator", , "runas", 1 Else Regards Milos
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2012 1:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics