#see if we can grab the sip address from registry, to get the domain. otherwise prompt for it.

#see if we can grab the sip address from registry, to get the domain. otherwise prompt for it.

#Connect to the LyncDiscoverInternal address for the domain name specified, and retrieves the pool FQDN.

#Connect to the LyncDiscoverInternal address for the domain name specified, and retrieves the pool FQDN.

"Could not discover pool FQDN, Please enter it manually"

$PoolFQDN = Read-Host "Could not discover pool FQDN, Please enter it manually"

#if not specifed, get the pool FQDN automatically (if possible)

#if not specifed, get the pool FQDN automatically (if possible)

#attempt to connect to the lync pool, display errors if it fails.

#attempt to connect to the lync pool, display errors if it fails.

#loop through all groups, check if the user is in any of them.

#loop through all groups, check if the user is in any of them.

#three return types, default only group names, -ReturnGrid for gridview of all info, -ReturnInfo for array of group objects.

#three return types, default only group names, -ReturnGrid for gridview of all info, -ReturnInfo for array of group objects.

# Will return any numbers with ‘1234’ anywhere in them.

# Will return any numbers with ‘1234’ anywhere in them.

# Will return a big list of all numbers assigned in lync.

# Will return a big list of all numbers assigned in lync.

# -PartialMatches or –IgnoreExt can be excluded, they will return only exact matches (incl. tel:), or check extensions respectively.

# -PartialMatches or –IgnoreExt can be excluded, they will return only exact matches (incl. tel:), or check extensions respectively.