0

I am looking for a way to remove the Remote Desktop Services server role on Windows server 2008 R2 remotely from a command prompt or power shell.

Thanks

Dave M
  • 4,514
  • 22
  • 31
  • 30
Maxime
  • 3
  • 1
  • 3

1 Answers1

1

You want either the Remove-WindowsFeature cmdlet, or ServerManagerCmd.exe.

This is well documented on TechNet.

MDMarra
  • 100,734
  • 32
  • 197
  • 329
  • Ok but how I can run these command remotely? – Maxime Jun 14 '13 at 15:47
  • 1
    PowerShell has built in remoting capabilities and `psexec.exe` is the standard tool for remotely executing command line tools on remote computers. – MDMarra Jun 14 '13 at 15:50