Get-QADComputer -NotLoggedOnFor 90 -SearchRoot 'doman.name/OU1/OU2'
I would like to use a variable for the last OU ex:
Get-QADComputer -NotLoggedOnFor 90 -SearchRoot 'doman.name/OU1/$OU2'
I get an error "cannot resolve directory object" for the code directly above. Is there a way to use a variable in this manner or an outright better way to do this?