Invoke/new session with token update and new group membership


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

  • Author
  • #24954
    Profile photo of Gert Ensing
    Gert Ensing


    I like to do invoke-command commands and every time I do this, the token should be updated.
    So when the account becomes a member of a new group it directly takes effect in the following invoke-command.
    Is this possible?

    When I do a runas on the commandprompt (outside powershell) the new session will have the updates membership. Thats what i Like in powershell remoting.

    Hope someone can help me.

    Best regards,

  • #24986
    Profile photo of Don Jones
    Don Jones

    No, the way Windows' security works, this isn't possible. Invoke-Command delegates your existing token; it doesn't create a new authentication event, so no new token is created.

You must be logged in to reply to this topic.