How to get AD user name from SID Run the following command on elevated command prompt wmic useraccount where sid ="Your sid" get name