Thread Benutzerrechte herausfinde bei Windows? (3 answers)
Opened by BratHering at 2007-07-24 18:49

smack:
 2007-07-24 18:54
#78782 #78782
User since
2007-05-08
27 Artikel
BenutzerIn
[default_avatar]
schau dir mal CPAN:win32 an. da gibts ne funktion die sich isadminuser nennt, was die wohl macht ;)

Quote
Win32::IsAdminUser()

Returns non zero if the account in whose security context the current process/thread is running belongs to the local group of Administrators in the built-in system domain; returns 0 if not. On Windows Vista it will only return non-zero if the process is actually running with elevated privileges. Returns undef and prints a warning if an error occurred. This function always returns 1 on Win9X.

View full thread Benutzerrechte herausfinde bei Windows?