Page 1 of 1 1
Topic Options
#165825 - 2006-08-11 03:04 PM revisiting an old problem.
Stephen Wintle Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 444
Loc: England
Hi

Am able to do the following with success:
Code:

$DomainName="kingsnortongirl"
$domain = GetObject("WinNT://$DomainName,domain")

$domain.filter = "user",""

RedirectOutput("c:\users.txt",1)
for each $user in $domain
? $user.name; + ' ' + $firstname
next



But want to include the First and last name on the same line any suggestions?

Many thanks

Steve.
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!

Top
#165826 - 2006-08-11 03:20 PM Re: revisiting an old problem.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I don't think the WinNT provider supports reading the FirstName and LastName. But you should be able to see FullName, example:

? $user.fullname

Either that or switch to LDAP.

Top
#165827 - 2006-08-11 03:44 PM Re: revisiting an old problem.
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Who's king Snort and what's he doing on that girl?
Top
#165828 - 2006-08-11 05:39 PM Re: revisiting an old problem.
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
rofl, I don't want to know what that is a reference to ;0)

[lyrics? idk]

Top
#165829 - 2006-08-11 08:45 PM Re: revisiting an old problem.
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Look at his domain name
Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.021 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