I am wanting to code an output file for the following script. If the user is not found, I want to put the user(s) into a txt file.
$List = Import-CSV "path-location"
$Step1 = New-MsolLicenseOptions -AccountSkuId site:OFFICESUBSCRIPTION_STUDENT
foreach ($Users in $List)
{
Set-MsolUser -UserPrincipalName $Users.Username -UsageLocation US
Set-MsolUserLicense -UserPrincipalName $Users.Username -AddLicenses "site:OFFICESUBSCRIPTION_STUDENT" -verbose -LicenseOptions $Step1
}