Get-Credential and Windows 10

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 3 months, 1 week ago.

  • Author
    Posts
  • #64944
    Profile photo of Tony Rodal
    Tony Rodal
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.