HI ,
I am trying to call a exe file using Start-process. When I use credential parameter, I can't use verb parameter and vice-versa.
$path = "H:\soft_web\software\notepad++"
$username = "MUMBAI\asharma"
$password = get-content "H:\soft_web\securestring.txt" | ConvertTo-SecureString
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password
start-process $path\npp.7.5.8.Installer.x64.exe -Credential $cred -Wait
it giving me error the elevated rights are require to run exe file.