Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Authentication
- Import-Module ExchangeOnlineManagement
- $UserPrincipalName = Read-Host "Please put your UserPrincipalName"
- Connect-IPPSSession -UserPrincipalName $UserPrincipalName
- # File location
- $file = Get-Content "C:\auth_domains.txt"
- # Loop for read file
- Foreach ($line in $file) # no komments..
- {
- Get-QuarantineMessage -SenderAddress "$line" | Out-File C:\quarantined_messages.txt -Append
- #Write-Output $line
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement