0

The actual post was here but it was an old thread and I couldn't find an answer online or with the infrastructure guys from my company as most of them already left.

I have a Windows 2008 Terminal Server. Terminal Server Configuration(licence server, session broker, etc) is managed by group policy. If i want to disable logon via:

change logon /disable

The Error Message: "Connections are currently ENABLED by Group Policy for this machine, unable to change."

Is there a smart way to fix this?

I would like to do this using a CMD as the company is moving towards automation but I am stuck. I'll really appreciate a response or answer to this.

Thank you

1 Answers1

0

You may be able to delete the registry value that corresponds to the Group Policy setting that controls this:

change logon /disable
Connections are currently ENABLED by Group Policy for this machine, unable to change.

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fDenyTSConnections /f
The operation completed successfully.

change logon /disable
Session logins are currently DISABLED

The policy setting is:

Node: Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections

Policy: Allow users to connect remotely by using Remote Desktop Services

Note that if Group Policy is reapplied, logons may be re-enabled.

Greg Askew
  • 34,339
  • 3
  • 52
  • 81