I am trying to run a get-aduser command and | it into a set-aduser command, but how do I display the get-aduser command and also pipe it into the set-aduser?
Thanks
I am trying to run a get-aduser command and | it into a set-aduser command, but how do I display the get-aduser command and also pipe it into the set-aduser?
Thanks
Copyright © 2021 Jogjafile Inc.
Pipe the output of the
Get-ADUsercommand to a scriptblock that displays it and also executes theSet-ADUsercommand:The first
$_displays the object returned byGet-ADUser; the second passes it to theSet-ADUsercommand.