Question on new-pssessionoption : operationtimeout, idletimeout

Welcome Forums General PowerShell Q&A Question on new-pssessionoption : operationtimeout, idletimeout

Viewing 2 reply threads
  • Author
    Posts
    • #187594
      Participant
      Topics: 2
      Replies: 1
      Points: 9
      Rank: Member

      Hi,

      I have some questions on new-pssessionoption and haven't found clear meaning.

      As I see, I may able to set operationtimeout, idletimeout but it doesn't look working when I have tests.

      I figured that operationtimeout is sort of time taking to finish like command or script in the remote session.

      Idletimeout is when I connected to remote session and do nothing for a specific duration?

      Please clarify it for the Powershell beginner.

      Thanks.

    • #187621
      Participant
      Topics: 2
      Replies: 136
      Points: 714
      Helping Hand
      Rank: Major Contributor

      Hi Shaihulud,

      Please go through the link below, especially in the description section of the parameters. It has a detailed explanation to your questions.

      https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionoption?view=powershell-6#parameters

      Thank you.

    • #187699
      Participant
      Topics: 2
      Replies: 1
      Points: 9
      Rank: Member

      Thanks Kiran.

      As a result of testing, Idletimeout  is only working as 'Disconnected' status of session. Please correct me if I'm wrong.

      Please let know some example of operationtimeout as I want to have a test. I have no idea good example for testing.

       

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.