namerg
asked on
How to modify telephoneNumber AD user property ?
Hello,
I am getting the following error once I changed the Telephone number for an AD user.
Type the new TELEPHONE Number:: 3034938004
Are you sure, you want to replace the following Title "303-493-8004" by "3034938004" (Y/N): y
Set-ADUser : A parameter cannot be found that matches parameter name 'telephoneNumber'.
At C:\scripts\AD\test.ps1:136 char:58
+ Get-ADUser $AD_User.sAMAccountName | Set-ADUser -telephoneNumber $Input ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-ADUser], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Mic rosoft.Act iveDirecto ry.Managem ent.Comman ds.SetADUs er
Thanks for your help,
I am getting the following error once I changed the Telephone number for an AD user.
Type the new TELEPHONE Number:: 3034938004
Are you sure, you want to replace the following Title "303-493-8004" by "3034938004" (Y/N): y
Set-ADUser : A parameter cannot be found that matches parameter name 'telephoneNumber'.
At C:\scripts\AD\test.ps1:136
+ Get-ADUser $AD_User.sAMAccountName | Set-ADUser -telephoneNumber $Input ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-ADUser], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Mic
Thanks for your help,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would check with Get-Help or technet reference for parameters.. :-)
Here is a good reference for all commands..
http://ss64.com/ps/
http://ss64.com/ps/
ASKER
Hmm ok. Thanks a million
ASKER
But, how did you know it was -OfficePhone ?
I go to the ADSI edit and do not see any OfficePhone.
Thanks,