Security Newbie: I am logged into my PC as local Administrator whether I use my PC locally or in the office. The PC is configured to connect to the domain when being in the office. The following lines Dim myDomain As AppDomain = Thread.GetDomain() myDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) If Not Thread.CurrentPrincipal.IsInRole(WindowsBuiltInRole.Administrator) Then IsInRole() throw an exception which says (I translate): "no trusted connection with domain" which is correct as I work at home. Question: How do I direct the IsInRole() property to always check *local* roles ? thanks herbert