The requested operation requires elevation

Hi, I have a PowerShell GUI that I’m trying to get to work with Windows 10. I get start-process: this command cannot be run due to the error: The requested operation requires elevation. The GUI works great in windows 7.

$buttonSetCredentials_Click={
	#TODO: Place custom script here
	$global:cred = Get-Credential -Credential 'Dom1\'
}

Once the credentials are set I use them to launch applications using my Administrator account.

$buttonRadiaConsoleSC_Click={
	#TODO: Place custom script here
	Start-Process "C:\Program Files\Desktop\DesktopPowershellAPPS\RADIA 91 Console.exe" -Credential $cred
}

Any ideas? Thanks for any help in advance.

Where are you trying to show up the results?

Try this…

Start-Process "C:\Program Files\Desktop\DesktopPowershellAPPS\RADIA 91 Console.exe" -Credential $cred | Out-GridView

Hi, I’m trying to launch the C:\Program Files\Desktop\DesktopPowershellAPPS\RADIA 91 Console.exe with the user I entered with get-credential, Sorry not trying to show results.

Hey @tony-rodal,
Try adding the runAs verb to your Start-Process

Start-Process "C:\Program Files\Desktop\DesktopPowershellAPPS\RADIA 91 Console.exe" -Credential $cred -Verb runAs