So I was chugging right along, I issued a command like the one below and then all of a sudden I received an “Invalid Operation” error. What should I try to resolve this error?
$obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
- Ensure that your account is a local admin on the server
- Ensure that you are launching Powershell as an administrator
- Ensure that Group Policy is not preventing you from making this change
- Browse to Computer Configuration -> Administrative Templates, Windows Templates, Terminal Services
Note: This “invalid operation” error can also appear when using the RemoveLSFromSpecifiedLicenseServerList and EmptySpecifiedLicenseServerList methods.