Tuesday, August 28, 2012

Came across this code in thePowershell in Depth.  It might have solved my problem with getting usable computer names from AD, but I don't have an AD to test against right now :\

Get-Process –computerName (

Get-ADComputer –filter * -searchBase "ou=WebFarm,dc=company,dc=pr" |

Select-Object –expandProperty Name

)

No comments:

Post a Comment