Is there a way of finding if the user is a system administrator?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'd like to know if there is any way in VBScript Excel 2003, to determine
whether the current user is a system administrator. I have a custom addin
that I only want the uninstall to be run if the user is a system
administrator.

Thanks,
Ryan
 
If I were trying to do that I would use some kind of functionallity that only
a Sys Admin would have as a flag. For example have a macro that tries to
create and delete a directory or a file in an area that only a Sys Admin has
access to. If they can do it without error then...
 
rchan11 said:
Hi,

I'd like to know if there is any way in VBScript Excel 2003, to determine
whether the current user is a system administrator. I have a custom addin
that I only want the uninstall to be run if the user is a system
administrator.

You can find some sample code for testing group membership here:

http://www.rlmueller.net/freecode1.htm

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top