how to Get Success/Failure Response from PowerShell Enable/Disable User using following scripts.I need to update the status of the user.
Get-ADUser -Filter mail -eq $mail | Disable-ADAccount
Get-ADUser -Filter 'mail -eq "[email protected]"' | Enable-ADAccount
Please advice me to resolve this.