We would like to run the script to multiple computers by selecting OU and Computer name (The OU and the computer name will we retrieved from AD ) as input parameter in a Grindview and wondering how this can be achieved ?
In the Powershell we´re using this step:
Step 1: Get list of Sites
Get.ADorganizationalunit -Filter xxxx | out-grindview -passthru
Step 2: Get list of computer from slected OU in step1
Get-adcomputer -filter xxx | -searchbase “OU=xx” | out-grindview -passthru
Step 3: Exeute the script on selcted Computer