Came across this code in the
Powershell 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