Hello,
Im running the following and I pass a list of Domain Controllers to a Get-WmiObject. In my output, I want to display the name of the DC along with the Name variable from the Get-Wmiobject. How can I do this?
get-addomaincontroller -filter 'Name -like "acme*"' | sort name | select name | foreach {get-wmiobject win32_computersystemproduct | FT ComputerName, Name}
Thanks for your help! SdeDot