Hi,
Yes, after running "Disable-PSRemoting -Force", it is no longer possible to establish remote PowerShell connections.
PS C:\Users\Administrator.AP> Disable-PSRemoting -Force
WARNING: Disabling the session configurations does not undo all the changes made by the Enable-PSRemoting or
Enable-PSSessionConfiguration cmdlet. You might have to manually undo the changes by following these steps:
1. Stop and disable the WinRM service.
2. Delete the listener that accepts requests on any IP address.
3. Disable the firewall exceptions for WS-Management communications.
4. Restore the value of the LocalAccountTokenFilterPolicy to 0, which restricts remote access to members of the Administrators group on the computer.
The warning messages you see after executing Disable-PSRemoting indicate you should take a few more steps to disable PowerShell remoting. However, these steps only add extra security.
If we want to stop and disable the WinRM service for security reasons, we could use PowerShell:
Stop-Service WinRM -PassThru
Set-Service WinRM -StartupType Disabled -PassThru
The -PassThru parameter lets us see the result of the command.