Invoke/new session with token update and new group membership

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 2 years, 4 months ago.

  • Author
    Posts
  • #24954

    Gert Ensing
    Participant

    HI,

    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,
    Gert

  • #24986

    Don Jones
    Keymaster

    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.