Skip to content
Jan Ryen

Jan Ryen

Learn from every failure and every success. Cultivate a Positive Mental Attitude.

Jan Ryen

  • About
  • Blog
  • Readinglist
  • Twitter Feed

Enable remote desktop using Powershell

Share via:

  • Facebook
  • Twitter
  • LinkedIn
  • Email
  • Copy Link
  • More

PowerShell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
#Enable remote desktop
(Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices).SetAllowTsConnections(1)
(Get-WmiObject -class "Win32_TSGeneralSetting" -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(1)
 
#Enable PSRemoting
Enable-PSRemoting -Force
Winrm quickconfig
 
#Set firewall rules
Set-NetFirewallRule -DisplayName "Remote Desktop*" -enabled true
 
 
#

Share via:

  • Facebook
  • Twitter
  • LinkedIn
  • Email
  • Copy Link
  • More
  • ← Education. What is it all about?
  • VMM UR12 may break the ability to set VLAN on VMs →

Please Follow:

  • LinkedIn
  • Parler
  • Twitter
  • Reddit

Recent Posts

  • [Solved] NIC error modern UI – Windows cannot access …
  • Automate set up of first Active Directory DC with powershell
  • What to memorize
  • Get Network card driver version remotely
  • Share folder with PowerShell

Categories

  • Business
  • DevOps
  • Hyper-V
  • KnowledgeBase
  • Linux
  • Powershell
  • Productivity
  • Windows Server
  • Windows Server 2012 R2
  • Terms of Service and Privacy Policy
  • Cookie Policy
© 2025 Jan Ryen | Designed by: Theme Freesia | Powered by: WordPress
  • Facebook
  • Twitter
  • LinkedIn
  • Email
  • Copy Link
  • More Networks
Share via
Facebook
X (Twitter)
LinkedIn
Mix
Email
Print
Copy Link
Powered by Social Snap
Copy link
CopyCopied
Powered by Social Snap