Invoke/new session with token update and new group membership

Welcome Forums General PowerShell Q&A Invoke/new session with token update and new group membership

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
3 years, 8 months ago.

  • Author
    Posts
  • #24954

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    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.

The topic ‘Invoke/new session with token update and new group membership’ is closed to new replies.