I am still rather new to the runas command, so any help would be greatly appreciated.
I would like to start an MSI install under a logon script. The script that I have created is purely in test mode right now, however it does not work:
copy y:\install\NEWica32pkg.msi c:\docume~1\%username%\desktop\msifile.msi
runas /u:%computername%\Administrator "msiexec /i /package c:\docume~1\%username%\desktop\NEWica32pkg.msi"|sanur password
When I run this script, everything seems to run fine, except when it gets to the msiexec statement. I receive a window that states that the installation package could not be opened.... If I run the msiexec statement by it's self, then I do not receive an error.
The Sanur statement is a program that I found that will pipe in the password for runas. If I remove the Sanur statement, it seems does not change the error.
Any suggestions are greatly appreciated!
Thank you very much;