So my goal here is to run commands like get-adcomputer | Install-WindowsUpdate -AcceptAll -AutoReboot
I want to get all of my AD computers and pipe the ComputerName to the ComputerName property in Install-WindowsUpdate
. I tried a @foreach statement but it takes forever to run because it does them one at a time. I'm looking for it to do multiple computers at once.
Any ideas?