If this is an Admin script, you could use Win32Admin.DLL to return the name of the remote Admin group.

http://home.comcast.net/~habullock/kix_solutions.htm

GetAdminAccount(optional $Server)
Returns the name of the local BUILTIN\Administrator account.

This method is valuable when trying to locate an account that has been renamed or is not 'Administrator' because of OS language localization.

[edit]
oops.

grabbed the wrong text:

LocalAdminGrp(optional $Server)
Returns the name of the local BUILTIN\Administrators group on $Server.

This method is valuable when trying to locate a renamed or language localized group name. When $Server is NULL, the local computer is used. This method is valuable when trying to locate an account that has been renamed or is not 'Administrators' because of OS language localization.

[/edit]


Edited by Howard Bullock (2005-08-25 09:14 PM)
_________________________
Home page: http://www.kixhelp.com/hb/