Several times to install program you need administrative or other user privileges. For example you take input from user for username and password and run that program in that particular user context.
I faced problem during installing MSI in particular user context or start IIS in context of another user.
I found this solution using command line argument.
1. Inermgr ( Run following command in Command line)
C:\runas /user:administrator “mmc %sysroot%\system32\inetsrv\iis.msc”
Enter the password for administrator :
2. MSI install
C:\runas /user:administrator “msiexec /i <full path of msi file>”
c:\runas /user:administrator “msiexec /i c:\download\setup.msi”
Enter the password for administrator :
For more information just type runas /? on command line.
No comments:
Post a Comment