Access denied running script when app starts process as different user(remoting)

This topic contains 1 reply, has 2 voices, and was last updated by  Daniel Krebs 2 years, 10 months ago.

  • Author
  • #29831

    Steven Grande

    I have a simple script that is starting a .Net application. During execution of the program, I need to start another process as a different user.
    This works when done locally through PowerShell or Command prompt.
    "Access is denied" is the exception thrown at the process.Start statememt.
    When removing the user credentials, the 2nd program starts. I really need to start the 2nd program as a different user for connection to SQL using Windows Auth.

  • #29834

    Daniel Krebs

    You've encountered a double hop scenario. You'll need to look into Kerberos constrained delegation in Active Directory or enable CredSSP.

    Check out our free ebook "Secrets of PowerShell Remoting" here:

You must be logged in to reply to this topic.