C# Logoff Users Remotely
Posted on 2013-11-15
I have an issue where one of our servers is diplaying the following message:
"A device attached to the system is not functioning"
Under any other instance I would just attached to server manager and logoff the users to clear the error. But in this instance I found that this server is actually not on the domain and it host 10 production Hyper-V hosts.
Is there a way that I can do this through either a script or C#. I tried using the shutdown /l command but I get access denied because I have no options to specify a username or password
Thank you all of your help in advance