I need some help.
For example, i need to get some information from AD computer.I use something like this:
$computers=Get-ADComputer -Filter {enabled -eq "true"} -Properties name,IPv4Address,OperatingSystem | Select-Object name,created,IPv4Address,OperatingSystem
Then, i do somethig with this computers:
Invoke-Command -computername $computers.name -ScriptBlock {get-hotfix -Description security*} -ErrorAction SilentlyContinue| select-object pscomputername,hotfixid
But i dont understand, how can i merge information from AD and my output. For example i need to get out string or file like that:
Computername(from AD), OperatingSystem (from AD), hotfixid (from my invoke command)
Thx