Windows Server 2019: RD Session Host — ChangeMode “Invalid operation” exception

If you’re changing the client access licensing mode of your RD Session Host using the PowerShell $obj.ChangeMode(…) command and it fails with an error saying “Exception … Invalid operation”…

…make sure you haven’t already configured a similar Group Policy (“Set the Remote Desktop Licensing mode” under Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing). In my experience, unsetting the said policy in gpedit helped against the $obj.ChangeMode error. Don’t ask me why!

This entry was posted in Solutions and tagged . Bookmark the permalink.

4 Responses to Windows Server 2019: RD Session Host — ChangeMode “Invalid operation” exception

  1. yup but sadly this does not solve the problem you address here:
    https://dae.me/blog/2533/windows-server-2019-remote-desktop-license-issue-with-user-cals/

    Or does it in your case?

Leave a Reply

Your email address will not be published. Required fields are marked *