Home Forums Programming Powershell Run New PowerShell Process As A Different User RE: Run New PowerShell Process As A Different User

  • Summary:
    I'm trying to automate a process. 
    In the process I create sql credentials and a windows account.
    At a point in the process I have to execute code as that windows account.  For example: create asymmetric key.
    Then after that windows user creates the asymmetric key I have to complete some additional tasks to complete the automation.

    So in a nutshell:
    Execute code as me.
    Execute code as a different Windows user.
    Execute code as me.
    Done.