> > import ctypes > print ctypes.windll.shell32.IsUserAnAdmin() > > (Courtesy of Thomas Heller - from a posting back in 2006) > > I have no idea if it will work on Vista. You will need to try it. >
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 regards, Simon
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32