After the server is installed, we usually download some IPSEC Services for execution. In this way, some ports 3389 are blocked, which makes remote connection unavailable, next let's take a look at the remote solution caused by ip policy.
I found that I cannot connect to the remote connection. After reading that 3389 is enabled normally, and the Terminal Services Service is enabled normally, I can see other servers on the server, you can see the windows Firewall/Internet Connection Sharing (ICS) service.
So use in prThe net stop sharedaccess command closed the firewall and found that the connection still failed. Later, we saw that the server had enabled the IPSEC Services Service.
However, currently, commands executed in pr cannot be used.Net stop IPSEC Services Command stop, if MSSQL Elevation of Privilege, we can execute net stop "IPSEC Services"To stop the ip policy service.
Since pr Elevation of Privilege, the input command must be enclosed in quotation marks, so the above method cannot be used to stop, in fact, to stop a service under cmd, we need to stop the service by "net stop service name". For example, the service name of the windows Default firewall is "sharedaccess". after using net start, we can see its display name "Windows Firewall/Internet Connection Sharing (ICS)". So if we want to stop the Terminal Services Service, you need to know the real service name.