| Find Users SID |
|
|
|
| Written by Cheyenne Harden | |||||
|
I was looking through the registry of a terminal server for a users outlook profille info. The only problem was, all users are referred to by an SID. I did some searching on the Internet and found this answer. This script will allow you to pull a users SID and display it in a message box. ----------COPY EVERYTHING BELOW THIS LINE---------- 'This script will allow you to pull a users SID and display it in a message box. sUser = InputBox("Type in the name of the user you want to query.") Set oUserAccount = GetObject("winmgmts://./root/cimv2") _ sUserSID = oUserAccount.SID
PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!! To make this script work you will need two things!
This information is provided "AS IS" with no warranties expressed or implied.
Powered by !JoomlaComment 3.12 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved. |
|||||
| < Prev | Next > |
|---|
















