Disable WinRM Remotely -> removing listeners

Viewing 1 reply thread
  • Author
    Posts
    • #1566932
      Gideon Kay
      Participant
      Member Points: 136
      Rank: 2

      Hi group,
      I am trying to disable WinRM remotely and it looks good except the section where I remove the Listeners a message pops up regarding connectivity to the server (PC) was lost. I believe the listeners have been removed by then.
      ‘Network Connection Interrupted. Attempting to reconnect for up to 4 minutes.’
      Any ideas will be greatly appreciated.
      Regards, Gideon.

      Write-host “Remove Listeners”
      Invoke-Command -ComputerName ESS-XXX-REP -ScriptBlock {
      Remove-Item -Path WSMan:\Localhost\listener\listener* -Recurse
      pause
      }

      Attachments:
      You must be logged in to view attached files.
    • #1566934
      Michael Pietroforte
      Keymaster
      Member Points: 40,154
      Author of the year 2018
      Rank: 4

      What does the below command return on the corresponding machine?

      dir wsman:\localhost\listener

      You can find more info about disabling WinRM here.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account