Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
keywords: test check determine admin administrator trick
; A small code snippet to determine if a user has admin priveliges ; From WIN 2K and up there is a file {C:\Windows [WINNT]\System32\comsetup.dll} ; You cannot access this file without Admin status ; ; Mark S. Daugherty windir = DirWindows(1) If !FileExist (windir: 'setup\comsetup.dll') ;Try to access this file. A user without admin priveliges cannot. Message("Sorry", "Looks like you are not an admin") Else Message("Success", "Yes you are an Admin") EndIf Exit
Article ID: W17905
Filename: Admin Test.txt
File Created: 2008:11:25:12:07:02
Last Updated: 2008:11:25:12:07:02