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