dsget - delete header info in output?

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top