title: Programmatically discovering "guest only" sharing/security model
body: <p>On Modern Windows, the default configuration is done in such a way that if I network-login as a local user, I actually only get authenticated as a guest (more details about this behavior is explained in <a href="http://technet.microsoft.com/en-us/library/cc786449(WS.10).aspx" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/library/cc786449(WS.10).aspx</a>)</p>
  
  <p>When my program tries to access WMI on this kind of servers via DCOM, I simply get "Access Denied" error, presumably because a guest user isn't allowed to connect to WMI.</p>
  
  <p>I'd like to differentiate this error from other kinds of access denied errors, such as a wrong password or non-existent user name, so that I can explain to the user what they need to fix the problem.</p>
  
  <p>So my question is, what can I do to detect such a server. I'm thinking that if there's some COM components that can be activated by a guest, that would do --- I can try to activate such a component, and if that works, I know that my login credential was correct. But I can't think of any such concrete component.</p>
  
  <p>Does anyone know such a component? Or any other ways of diagnosing this situation?</p>