Skip to content

Instantly share code, notes, and snippets.

@Apoc70
Created June 1, 2023 11:05
Show Gist options
  • Save Apoc70/af5e8a945b2672070cbe3ac4186d2986 to your computer and use it in GitHub Desktop.
Save Apoc70/af5e8a945b2672070cbe3ac4186d2986 to your computer and use it in GitHub Desktop.
# New B2B user email address
$newEmailAddress = "user@setebos-ag.com"
# Update primary SMTP address for a selected user
$B2BUserToUpdate = 'USER_varunagroup.de#EXT#'
Set-MailUser $B2BUserToUpdate -ExternalEmailAddress "SMTP:$newEmailAddress" -WindowsEmailAddress $newEmailAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment