Try adding Format-Table -autosize like so:

Get-ADGroupMember -Identity "Group Name" -recursive | sort name |
Where {$_.ObjectClass -eq 'computer'} |
Get-ADComputer -Properties Name, Description |
Select Name, Description |
Format-Table -AutoSize


From: [email protected] [mailto:[email protected]] On 
Behalf Of Murray, Mike
Sent: Thursday, March 24, 2016 4:00 PM
To: [email protected]
Subject: [mssms] OT - PowerShell help?

Hola,

I'm running the script below to list computers within an AD security group (the 
group in question has members of multiple other security groups). It works, but 
it cuts off the name if it's more than 6 characters in length. Annoying! Any 
idea why?

Get-ADGroupMember -Identity "Group Name" -recursive | sort name |
Where {$_.ObjectClass -eq 'computer'} |
Get-ADComputer -Properties Name, Description |
Select Name, Description

Example:
[cid:[email protected]]


Best Regards,

Mike Murray
Desktop Management Coordinator - IT Support Services
California State University, Chico
530.898.4357
[email protected]<mailto:[email protected]>





Reply via email to