windows - Script to Run as Admin -


i create script open cmd prompt admin , run exe, msi, or bat file.

my current scripted cmd

msiexec.exe /i c:\temp\cisco_agent\ciscoagentdesktop.msi /qn 

see technet article: runas command documentation

from command prompt:

c:\> runas /user:<localmachinename>\administrator cmd 

or, if you're connected domain:

c:\> runas /user:<domainname>\<administratoraccountname> cmd 

take here learn how use runas password automatically.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -