Validate PSSession authentication mechanism

Welcome Forums General PowerShell Q&A Validate PSSession authentication mechanism

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

 
Keymaster
6 months ago.

  • Author
    Posts
  • #100575

    Participant
    Points: 22
    Rank: Member

    Hi,

    I would like to test if an existing PSSession object is created using the CredSSP authentication mechanism. I'm creating some modules whose functions would receive a PSSession object and in some cases that needs to be a PSSession created with CredSSP. I would like to validate that condition in the receiving function.

    I don't see any property of the PSSesion object that gives me that information, nor aven't found any documentation or articles on the subject. Anyone can help me out here?

    Thanks in advance,
    Harmen

  • #100578

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

    That information isn't exposed within the session; the session runs well “underneath” the transport protocol that actually handles authentication. You'd have to trap for error conditions instead.

The topic ‘Validate PSSession authentication mechanism’ is closed to new replies.