How can find out if the user has administrator rights using VB and/or VBscript?
If the user does not have administrator's access rights, I simply want to display a message and quit.
Thanks
PS:
I can get the user's name and computer's name using
VBA.Environ("USERNAME", Function GetUserName using advapi32.dll, Function GetComputerName using kernel32...
If the user does not have administrator's access rights, I simply want to display a message and quit.
Thanks
PS:
I can get the user's name and computer's name using
VBA.Environ("USERNAME", Function GetUserName using advapi32.dll, Function GetComputerName using kernel32...