How to detect if CMD is running as Administrator/has elevated privileges?
This trick only requires one command: type net session into the command prompt. If you are NOT an admin, you get an access is denied message. System error 5 has occurred. Access is denied. If you ARE an admin, you get a different message, the most common being: There are no entries in the list. … Read more