Hi
I'm creating a script to get names of computers in ad, pinging the clients etc.
I need some help on weeding out specific machines..
without the 'weeding out' the script looks like this: (snippet of the script)
Get-QADComputer -SearchRoot "site.dk/computere/arbejdsstationer/Windows 7/sccm/test sup sccm" | foreach `
{
#each of them is testing for ping. if it's pinging the script continue
if (Test-Connection $_.name -Quiet)
{
#Get ComputerName
$name = $_.nameI want to weed out all ad machines returned that has a name like "V00"
but I'm unsure if I can do it in the foreach above?
Guidance needed :)
Kindest regards, Martin