Hey there,
I want change a drive from an user-object, e.g. the edsva-driveH is the home directory and the path must be changed.
First problem was to get these attribute edsva-driveH. Secound problem was to read and manipulate the attribute.
But I think I've got a good soulution for booth problems.
To get the attribute use -Proxy
Get-QADUser -Proxy Stefan.Rehwald -IncludedProperties edsva-driveH
So you see the value for edsva-driveH. But if you want to use it, there a problem,too.
$User = Get-QADUser -Proxy Stefan.Rehwald -IncludedProperties edsva-driveH
$User.edsva-driveH
This raise an error like unexpected/ unknown token. There is my solution:
$User = Get-QADUser -Proxy Stefan.Rehwald -IncludedProperties edsva-driveH
$User."edsva-driveH"
So it works.Do you have a better way for me or is that the solution for it?
List all edsva-drives with,but it'*s vers slow
Get-QADUser -Proxy Stefan.Rehwald -IncludeAllProperties | Select-Object 'edsva-drive*'
Kind regards
Stefan