Author Posts

May 5, 2015 at 3:21 am

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

May 6, 2015 at 6:26 am

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.