# Created By Alberto Igbinedion
#
# Create Existing AD User specifying Email Address
# To Remove mailbox and without deleting user from AD Run...
# Disable-mailbox UserName

$Users = Import-Csv "C:\Scripts\Input\text.csv" |

% {Enable-Mailbox -database "Mailbox Database 1539870071"  -Identity $_.identity -Alias ("{0}.{1}" -f $_.firstname, $_.lastname)} |

Set-Mailbox -PrimarySmtpAddress onstestuser@ons.gov.uk -EmailAddressPolicyEnabled $false