<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">import ctypes<br>print ctypes.windll.shell32.IsUserAn<span>Admin</span>()<br><div><br>
(Courtesy of Thomas Heller - from a posting back in 2006)<br><br>I have no idea if it will work on Vista. You will need to try it.</div></blockquote><div><br>It kinda works on Vista. If you're running from an elevated console then it will return 1, othervise (even if you're part of Administrators group) it will return 0
<br><br>regards,<br><br>Simon<br></div></div><br>