Monday, 13 June 2022

Removing empty row from csv column using PowerShell

Exchange Mailboxes
Include:[sumant@outlook.com] 
Include:[keshav@outlook.com]

Include:[Jewel@outlook.com]

Script
Import-Csv "C:\AuditLogSearch\Dis\Modified-Audit-Log-Records.csv" |
  Where-Object 'Exchange Mailboxes' -ne ''

No comments:

Post a Comment