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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -