ITExperience.NET
- Homepage
- Be A Better Sysadmin
Enable RDP on Windows 10 using Powershell
Just a small reminder for myself [and you]:
If you ever need to enable RDP [mstsc] on a Windows 10 machine, and you cant get to the System control panel item, use Powershell to enable RDP:
# Enable Remote Desktop [Get-WmiObject Win32_TerminalServiceSetting -Namespace root\cimv2\TerminalServices].SetAllowTsConnections[1,1] | Out-Null [Get-WmiObject -Class "Win32_TSGeneralSetting" -Namespace root\cimv2\TerminalServices -Filter "TerminalName='RDP-tcp'"].SetUserAuthenticationRequired[0] | Out-Null Get-NetFirewallRule -DisplayName "Remote Desktop*" | Set-NetFirewallRule -enabled trueExecute aboves cmdlets as Administrator in Powershell, and RDP should work.
To test the connection, open Powershell on another machine, and run:
Test-NetConnection 10.10.1.105 -CommonTCPPort rdpResult should be as follows:
PS C:\WINDOWS\system32> Test-NetConnection 10.10.1.105 -CommonTCPPort rdp ComputerName : 10.10.1.105 RemoteAddress : 10.10.1.105 RemotePort : 3389 InterfaceAlias : Ethernet SourceAddress : 10.10.1.247 TcpTestSucceeded : True- Automatically open ica file in Chrome and Edge
- Remove Windows Hello after disabling in Intune
- All fixes for error caa70004 in Microsoft Teams
Related Post
Recent Posts
- General
4 easy ways to take a screenshot on Mac
Taking a screenshot [also called a print screen or screen capture] on your Mac is
- General
Gaming Services error 0x80073D26 easy fix
The Gaming Services error in the Microsoft Store is a common problem. When you click
- Windows Tips 'n Tricks
Fix Black page layout in Microsoft Word
Many Microsoft Word users reported that their page layout has suddenly gone black. With the
- No Errors No Problems
Fix Xerox error 0x800f020b in Windows Update
As of February 2021, many Xerox users are experiencing the Windows Update error 0x800f020b. The
- Be A Better Sysadmin
Automatically open ica file in Chrome and Edge
If you often work with Citrix sessions, you will probably recognize the following problem. As
- General
Turn off weather widget in taskbar Windows 10
The Weather widget was introduced in the latest Windows 10 Cumulative Update, June 2021. The