We are using PowerShell remoting again to execute Enable-NetFirewallRule remotely. If so, you can simply enable Remote Desktop by modifying a registry key on the remote machine: Invoke-Command -Computername -ScriptBlock ![]() Let's assume first that PowerShell remoting is enabled on the remote machine. Which method you use mostly depends on your Windows Firewall configuration. I know of two methods to enable Remote Desktop remotely via PowerShell. Windows Firewall might get in your way, and if PowerShell remoting is not enabled on the machine, things can get a bit tricky. By contrast, on a PowerShell console, you can essentially get the job done with a single command. The only problem is that Group Policy is sluggish, and if you want to log in quickly to a remote machine, it is often not an option. ![]() Allow inbound Remote Desktop connections via Group Policy
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |