Thanks, that worked. In all I tried I didn’t get the syntax correct. And yes, the output to the console is due to it being part of a larger script - actually reading the STDOut with -ForegroundColor parameter and pulling that into a custom GUI. Thanks again for the push in the right direction.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Get-ADDomainController | 3 | 1118 | May 16, 2024 | |
| Trying to pick from list of DCs | 9 | 149 | May 16, 2024 | |
| Help figuring out filtering Get-ADComputer with variables | 10 | 1246 | May 16, 2024 | |
| Which domain contoller is polled in Powershell query | 1 | 163 | May 16, 2024 | |
| Will 'get-ADUser -server $FQDN' use the same DC as 'get-addomaincontroller -Server $FQDN' | 10 | 1045 | May 16, 2024 |