In my c# winForm application I have to recognize if a guest account is running the application. Any idea?
You can check the IsGuest
property of the current WindowsIdentity
:
if (System.Security.Principal.WindowsIdentity.GetCurrent().IsGuest)
{
// it's a guest account
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With