The discoverability-flyout tweak used New-Item -Force on a protected HKLM key, which throws UnauthorizedAccessException. With ErrorActionPreference Stop that aborted the bootstrap before the RDP block, so TermService stayed stopped, fDenyTSConnections stayed 1 and no RDP firewall rule was enabled. Anyone trying 3389 got a closed port. Use New-ItemProperty in a try/catch, and make the RDP block defensive (start the service, enable the rule group, log failures).