Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: determine user admin rights
;test for administrator rights ErrorMode(@off) a=FileOpen("C:\Winnt\System32\drivers\test.txt", "WRITE") If a == 0 Message("Attention!", "You do not have administrator rights to this machine. Installation will not continue.") exit else FileWrite(a, "This is a test for administrator rights.") FileClose(a) FileDelete("C:\Winnt\System32\drivers\test.txt") endif ErrorMode(@cancel)
Article ID: W14628
Filename: Determine if a User has Admin Rights.txt
File Created: 2000:11:14:13:15:32
Last Updated: 2000:11:14:13:15:32