in reply to How to determine if a user has administrator privileges in Windows environment

In unix, I thought you also had to check if the GID is zero?

In Windows, you ight be better off just trying your operation and check if it works, since it's actually possible to restrict the operations Administrator can do. (However, they can give themselves permissions to do something.)

  • Comment on Re: How to determine if a user has administrator privileges in Windows environment