I have a .NET application C# V4.51 vs 2013 , Win 10 Prof
Application has problem read /write with IO system - permit ion problem .
I ran this app user my account , Created with Administrative rights
I got replay in previous post to check admin rights
--------
public static bool IsUserAdministrator()
{
bool isAdmin;
try
{
WindowsIdentity user = WindowsIdentity.GetCurrent();
WindowsPrincipal principal = new WindowsPrincipal(user);
isAdmin = principal.IsInRole(WindowsBuiltInRole.Administrator);
}
catch (UnauthorizedAccessException ex)
{
isAdmin = false;
}
catch (Exception ex)
{
isAdmin = false;
}
return isAdmin;
}
---------------------------------------
I always return that i'm not administrator
=================
I check my account again , and via Manager see me account administrators group
==========================================
What I can do about it
Application attached
Thank you for you efforts make windows 10 better.
Application has problem read /write with IO system - permit ion problem .
I ran this app user my account , Created with Administrative rights
I got replay in previous post to check admin rights
--------
public static bool IsUserAdministrator()
{
bool isAdmin;
try
{
WindowsIdentity user = WindowsIdentity.GetCurrent();
WindowsPrincipal principal = new WindowsPrincipal(user);
isAdmin = principal.IsInRole(WindowsBuiltInRole.Administrator);
}
catch (UnauthorizedAccessException ex)
{
isAdmin = false;
}
catch (Exception ex)
{
isAdmin = false;
}
return isAdmin;
}
---------------------------------------
I always return that i'm not administrator
=================
I check my account again , and via Manager see me account administrators group
==========================================
What I can do about it
Application attached
Thank you for you efforts make windows 10 better.