list users
- From: Isaac Perez Moncho <suscripcions@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 13:24:44 +0200
Hi all,
I want to get a list of the users of a system that are not being created
by default.
The users that are added after.
There is a way to do this?
I thougt to use the lengt of the sid, because all the new accounts have
the last number bigger than 1000.
But I can't the length in bytes of the sids to compare, the vbs that I
made get me an error, the code is:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_SID")
For Each objItem In colItems
WScript.Echo "User Name: " & objItem.SidLength
Next
I'm new on scripting so I thing I'm doing a basic question error, but
don't know which is.
Anyone knows how can I list the users or get the sidlenght for making a
comparation?
Thanks
.
- Prev by Date: How to switch off warnings.
- Next by Date: HTA: Read Command Line Output
- Previous by thread: How to switch off warnings.
- Next by thread: HTA: Read Command Line Output
- Index(es):
Relevant Pages
|