The script is as follows
get-content user.txt | foreach { get-qaduser $-} | sort altrecipient |
select-object displayname, altrecipient | convertto-html list.htm
Regards,
"Brandon Shell [MVP]" wrote:
| Quote: |  | |
|
> Can you show me the code your using? Are you using a LDAP filter?
>
> "Swamy Channaveera" <SwamyChannaveera@xxxxxx> wrote in
> message news:41A5C65E-985D-4620-B58D-BF2C06943146@xxxxxx | Quote: |  | | |
> > Hi,
> >
> > I'm using get-qaduser to get some of the attributes from AD. The script
> > reads a text filee and extracts some of the attributes and writes to the
> > csv
> > files. The execution takes a long time. I'm querying for only 35 users max
> > it
> > takes around 45sec to 1 min to get the info and write it to csv file.
> > Where
> > as a VBScript hardly takes 10 sec!!!!
> >
> > I have another script which checks wheter the Homemdb attribute exists and
> > writes some of the attributes to the csv files. The execution takes a long
> > time about 1 hours for 17,000 users.
> >
> > I'm running the script on XP mahcine with 512 MB ram. Any suggestion to
> > improve the execution would be appriciated.
> >
> > Regards,
> > Swamy
> >
> >
| | | | | > | |
| | |