dsget - delete header info in output?

Pete

Distinguished
Oct 21, 2001
975
0
18,980
Archived from groups: microsoft.public.win2000.active_directory (More info?)

Hello,

Is it possible to output data without the header information when using
dsget?

For example,

Using the command:

dsquery group -name "users" | dsget group -members | dsget user
-display -email

Can I get the data without the words "display" and "email" appearing at
the top of the columns?

And on that note can I also suppress the phrase "dsget succeeded" at
the end of the output?

Thanks,
Pete
 
Archived from groups: microsoft.public.win2000.active_directory (More info?)

On 20 Jul 2005 11:22:28 -0700, "Pete" <pcooke@necco.com> wrote:

>Hello,
>
>Is it possible to output data without the header information when using
>dsget?
>
>For example,
>
>Using the command:
>
>dsquery group -name "users" | dsget group -members | dsget user
>-display -email
>
>Can I get the data without the words "display" and "email" appearing at
>the top of the columns?
>
>And on that note can I also suppress the phrase "dsget succeeded" at
>the end of the output?
>
>Thanks,
>Pete

The following is 1 line:

for /f "Tokens=*" %a in ('dsquery group -name "userss"^|dsget group -members^|dsget user -display -email^|Find /V "email"^|find /V "dsget"') do @echo %a