Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
"How can I determine if User Account Control is on or off via code?"
"You are asking the wrong question. Who cares?"
// using System.Security.Principle; private bool IsAdmin() { WindowsIdentity id = WindowsIdentity.GetCurrent(); WindowsPrincipal p = new WindowsPrincipal(id); return p.IsInRole("Administrators"); }