Microsoft says that chglogon /query should return if a Host Server is taking sessions or not however it only returns "Connections are currently ENABLED by Group Policy for this machine, unable to change."
What I am trying to find is the "User logon mode" of one of my host servers. Based on what Microsoft says I should be able to run the above command and get the results but it always gives me that same message whether the server is set to "Allow
all connections", "Allow reconnections, but prevent new logons", or "Allow reconnections, but prevent new logons until the server is restarted."
My goal is not have to log on to each of my session hosts to find out if it is taking sessions or not. Is there no other way to pull this information remotely from running a command or something?
Also I know I can use Remote Desktop Session Host Configuration to connect to another computer, but I also do not want to do that either. There should be a way to query this information remotely.
HELP!