Get-Credential and Windows 10

Welcome Forums General PowerShell Q&A Get-Credential and Windows 10

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 12 months ago.

  • Author
  • #64944

    Points: 18
    Rank: Member

    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

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    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.

The topic ‘Get-Credential and Windows 10’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort