AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
Some how I would need to use Thread.CurrentPrincipal. How would you set this up in the switch statement?