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
Post a Comment