Looking at this script I don't see where it is actually checking permissions(admin,system,everyone) but rather testing access with the credentials gathered from SMB login.. Is this correct or am I missing something?.. If so this appears to be raising a false positive when seeded with valid admin credentials.
Danny