I have a csv file with users (domain\user) that I need to find their access. I found a good link here (Powershell script to find permissions for a specific user) on SP Forum. I am calling the function with following code but it only works if I have only one user in the csv file. If I have multiple users in the csv file then it stops. Any idea why?
$usercsv = import-csv 'C:\\Powershell\\MigrationRelated\\ADGroups.csv'
$webApp = "http://inside.NOVIntranet.com"
foreach($ADusers in $usercsv)
{
$NOVUser = $ADusers.NOVGroup.Tostring()
GetUserAccessReport $webApp $NOVUser
}