Hello Friends,
Many times we need to list the telephone number of users who are enabled for Remote call Control user control.
Here are script which is useful for list the telephone settings.
'List All Telephone Settings for a User Account'
Set objUser = GetObject _
("LDAP://cn=Abc,ou=HR,dc=NA,dc=ocs,dc=com")
WScript.Echo "Home Phone: " & objUser.homePhone
WScript.Echo "Pager: " & objUser.pager
WScript.Echo "Mobile phone: " & objUser.mobile
WScript.Echo " IP Phone: " & objUser.ipPhone
WScript.Echo "Information: " & objUser.info
WScript.Echo " Fax Number: " & objUser.facsimileTelephoneNumber
WScript.Echo "Other Home Phone:"
For Each strValue in objUser.otherHomePhone
WScript.Echo strValue
Next
WScript.Echo "Other Pager:"
For Each strValue in objUser.otherPager
WScript.Echo strValue
Next
WScript.Echo "oOther Mobile Phone:"
For Each strValue in objUser.otherMobile
WScript.Echo strValue
Next
WScript.Echo "Other IP Phone:"
For Each strValue in objUser.otherIpPhone
WScript.Echo strValue
Next
WScript.Echo "Other Fax Number:"
For Each strValue in objUser.otherFacsimileTelephoneNumber
WScript.Echo strValue
Next
Thank you!
No comments:
Post a Comment
Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge
Note: Only a member of this blog may post a comment.