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 Profile photo of Daniel Krebs Daniel Krebs 1 year, 1 month ago.

  • Author
  • #29831
    Profile photo of Steven Grande
    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
    Profile photo of Daniel Krebs
    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.