Hi all ,
I have two files in first one I call batch file (start.cmd) from windows as admin user .In this file I call powershell as admin, and through this file I call second file (msi.ps1) where I install msi file. All works fine but when I run Start.cmd it requires UAC confirmation for powershell.
powershell -Command “Start-Process powershell “-ExecutionPolicy Bypass -NoProfile -Command
\"cd \“C:\Temp`”; & `”.\msi.ps1`”`"" -Verb RunAs"
Start-Process msiexec.exe -Wait -ArgumentList ‘/I D:\file.msi /quiet’
How could I avoid this confirmation?