Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Using powershell to find the owners of Fax numbers

$
0
0

I am looking at composing a script that can  faxnumbers as input and provide me the list of users that the fax number is assigned to.

So far, I have come up with the below:

$faxnumbers = import-csv c:\temp\test.csv
foreach ($faxnumber in $faxnumbers)
{
Get-user -resultsize unlimited -Filter {((Otherfax -eq '$_.number') -and (RecipientType -eq 'UserMailbox'))} | FT name*
}

I am unable to formulate a method to call '$number' (From the input file) variable in the above command. Any help is greatly appreciated!


Viewing all articles
Browse latest Browse all 6937

Trending Articles