Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Export errors to html or txt file

$
0
0

I'm trying to run this command for every user to verify they have an account. 

Get-MSOLUser -UserPrincipalName joe.user@mycompany.com

I would like to run this from a csv file and just export the errors or those "Not Found". Does anyone have a script that can do this? Much appreciated as we have 4000 users I need to check. Thanks!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>