Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Remove the Header, etc..

$
0
0

I want to do the following and only have the samAccountName in the file.  What do I need to do to the command line?

----------------------------------------------------------------------------------------
$groups | Sort-Object samAccountName | format-list samAccountName
----------------------------------------------------------------------------------------

I want to remove the "SamAccountName :" from the dump below

SamAccountName : Account Operators
SamAccountName : Administrators


Paul Bergson
MVP - Directory Services
MCITP: Enterprise Administrator
MCTS, MCT, MCSE, MCSA, Security, BS CSci
2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
Please no e-mails, any questions should be posted in the NewsGroup.
This posting is provided AS IS with no warranties, and confers no rights.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>