Thanks for looking....
Any idea on how you can test from the command line if the current user is a member of the Administrator group?
There is a IsUserAnAdmin() of the shell32.dll but I couldn't get it to work. I tried 'rundll32 shell32,IsUserAnAdmin' and 'rundll32 shell32, IsUserAnAdmin <username>' niether of which seemed to work correctly. I would check the errorlevel afterwards and whether the user was an Administrator or not, it alwways returned the same error level.
Maybe a query a registry key?
Any help is much appreciated.
Any idea on how you can test from the command line if the current user is a member of the Administrator group?
There is a IsUserAnAdmin() of the shell32.dll but I couldn't get it to work. I tried 'rundll32 shell32,IsUserAnAdmin' and 'rundll32 shell32, IsUserAnAdmin <username>' niether of which seemed to work correctly. I would check the errorlevel afterwards and whether the user was an Administrator or not, it alwways returned the same error level.
Maybe a query a registry key?
Any help is much appreciated.