Page 1 of 1 1
Topic Options
#86342 - 2002-06-26 04:28 PM ADSI: WinNTSystemInfo ???
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Was just poking around the registry (HKCR) - playing with the WinHttp.WinHttpRequest.5 object on WINDOWS XP, and noticed an object I've never seen before. Is this related to AD systeminfo ? Have no idea if it comes standard with XP, or whether it came along with something else I download:

break on

$info = createobject("WinNTSystemInfo")

?"val=" $info.username

exit 1


Gives the standard Windows NT username. Not sure what other goodies are there.

-Shawn

Top
#86343 - 2002-06-26 04:32 PM Re: ADSI: WinNTSystemInfo ???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not exclusive to XP... works on my 2K box.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#86344 - 2002-06-26 04:36 PM Re: ADSI: WinNTSystemInfo ???
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Probably, most of the information is redundant. Redundant to the standard Kixtart @MACROS like @USERID and @WKSTA ... should give it an OLE View I guess, ahh, if only we had a nice compact, free OLE viewer to use, eh ? (Steve!)

-Shawn

Top
#86345 - 2002-06-26 04:44 PM Re: ADSI: WinNTSystemInfo ???
Anonymous
Unregistered


Shawn,
Here is what I found - there is not much there...;

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/iadswinntsysteminfo.asp

Properties
The IADsWinNTSystemInfo interface defines the following properties. The preceding table includes access methods for these properties.

Properties Description
ComputerName Retrieves the host name of the computer.

DomainName Retrieves the domain name the user is on.

PDC Retrieves the name of the primary domain controller to which the host computer belongs.

UserName Retrieves the name of the user account under which the method is called.

Windows NT/2000/XP: Included in Windows 2000 and later.

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org