Stephen Wintle
(Seasoned Scripter)
2006-08-11 03:04 PM
revisiting an old problem.

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.


ShawnAdministrator
(KiX Supporter)
2006-08-11 03:20 PM
Re: revisiting an old problem.

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.


DrillSergeant
(MM club member)
2006-08-11 03:44 PM
Re: revisiting an old problem.

Who's king Snort and what's he doing on that girl?

ShawnAdministrator
(KiX Supporter)
2006-08-11 05:39 PM
Re: revisiting an old problem.

rofl, I don't want to know what that is a reference to ;0)

[lyrics? idk]


DrillSergeant
(MM club member)
2006-08-11 08:45 PM
Re: revisiting an old problem.

Look at his domain name