As the title says I need to check whether the user executing the script has administrative privilages on the machine or not.
I have specified the user executing the script because the script could have been executed with a user other than the logged on using something similar to "Runas".
Regards,
Javier
@Javier: Both solutions work in a PC with an English version of Windows installed but not if the installed is in different language. This is because the Administrators group doesn't exist, the name is different for instance in Spanish. I need the solution to work in all configurations.