Get-Credential and Windows 10

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 1 year, 4 months ago.

  • Author
  • #64944


    Hi, I'm trying to get the following working in Windows 10. Works fine in Windows 7. We have two IDs where I work. One is a normal id and the other is an Admin ID. Trying to get this to work with my Admin ID.

    $global:cred = Get-Credential -Credential 'Dom1\'
    	Start-Process "C:\Program Files\Desktop\DesktopPowershellAPPS\Console.exe" -Credential $cred

    I get the following error. Start-Process : This command cannot be run due to the error: The requested operation requires elevation. Thanks for any help in advance.

  • #64947

    Don Jones

    You know, I thought I'd read that Win10 requires a specific privilege in order to launch a process under alternate credentials. I'll see if I can dig it up. It's a Windows thing, though, not a PowerShell thing, if that helps you search for answers.

You must be logged in to reply to this topic.