Desativando a Área de Trabalho Remota (RDP)

Parar e desativar o serviço (TermService) :

PowerShell

Set-Service -Name "TermService" -StartupType Disabled" -Force
Stop-Service -Name "TermService

Alterar o Registro para fechar conexões remotas:

PowerShell


Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 1

Parar e desativar o serviço WinRM :


PowerShell

Stop-Service -Name "WinRM" -Force
Set-Service -Name "WinRM" -StartupType Disabled


Bloquear as configurações de sessão remota nativas :

PowerShell

Disable-PSRemoting -Force


Desativar Assistência Remota :

PowerShell

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Remote Assistance' -Name "fAllowToGetHelp" -Value 0