Link to home
Start Free TrialLog in
Avatar of katacracks
katacracks

asked on

search the telephone number of the contacts

Hi
I'm need a script that will search the telephone numbers of the contacts existing in the private and/or public users folders of an Exchange 2007 within Active Directory.

WSH/VBscript is ok but Windows Powershell would be cool.

Thanks.
Avatar of kdagli
kdagli

Below is the shell command:-

Get-Contact | where {$_.HomePhone -ne "$null" -or $_.MobilePhone -ne "$null" -or $_.Phone -ne "$null"} | select Name, HomePhone, Phone, MobilePhone

ASKER CERTIFIED SOLUTION
Avatar of kdagli
kdagli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of GusGallows
GusGallows
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial