Hi there,
If you need to disable connectivity to the Terminal Server, you have several options. Disabling connectivity for Terminal Server Clients is different from disabling normal user connectivity. For non-client connectivity, you can pause or stop the Net Logon or Server services in Control Panel/Services. However, the Terminal Server service can't be paused, stopped, or disabled.
You can follow the steps from the link https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/disable-terminal-server-client-logons
------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--