Script contain one function to remotely enable Remote Desktop service. Code check active directory to get all computer object and try enable RDP on all machines. It modify value in registry that enable terminal service connection and enable firewall ports that’s allow to use RDP.