Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Get-AdComputer just name

$
0
0

I have this code that works  Get-ADComputer -Filter * | Format-List name   but it returns the following:

 

 

name : MG08157

 

name : MG08151

 

name : MG08155

 

name : MG07962

 

name : MG09233

 

name : MG09270

 

I don't want the Name:  and I don't want the spaces inbetween the names.  How do I just get 1 computer name per line?  

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles