Hi
I tried it with this:
Get-ADUser -SearchBase "OU=IT_TEST,OU=_Benutzer,DC=xxx,DC=local" -Filter * -properties IPPhone | where {$_.IPPhone -ne $null} | % { set-aduser $_ -IPPhone $(($_.IPPhone).Replace("0041","+41")) }
but i get the error
Set-ADUser : A parameter cannot be found that matches parameter name 'IPPhone'.
At line:1 char:157
+ Get-ADUser -SearchBase "OU=IT_TEST,OU=_Benutzer,DC=xxx,DC=local" -Filter *
-properties IPPhone | where {$_.IPPhone -ne $null} | % { set-aduser $_ -IPPhone
<<<< $(($_.IPPhone).Replace("0041","+41")) }
+ CategoryInfo : InvalidArgument: (:) [Set-ADUser], ParameterBind
ingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.ActiveDirectory
.Management.Commands.SetADUser
Any ideas?
Thank you!!