I would like to make a point that this code will NOT work in the following senario: User 1 logs on and runs script, getting s-1-blah-1003 User 1 chooses "switch user" User 2 logs on and runs script. Now, the code will still display the SID from the first user that logged on, user 1. s-1-blah-1003 How do we get this code to work in this situation?