How to change windows live ID via PowerShell

Anonymous
2024-09-03T10:37:09+00:00

Good morning All,

One of our clients raised a service ticket with regarding send as permissions to a shared mailbox. I granted the permissions in 365 admin as requested by the user. After a while the user reported back to me that it still didn't work. I had ran a few test emails from her machine to my work email address and she was no longer getting a ~"Undeliverable message like before, however i never received the email.

I then logged in with the 365 admin account and changed the SMTP address to adminOld, so then i can create a new shared mailbox and add the SMTPadminOld address to the new shared mailbox then she wont loose any of the email that she had already. After running a few commands in PowerShell. I had found that the windows live ID was still set to "admin@" which was not what i set it to previously. I've been trying for a while now to change the windows Live ID. Via PowerShell and I've not had much luck in locating which parameter to use or Windows Live ID.

Any help would be much appreciated.

All the best

Outlook | Windows | Classic Outlook for Windows | For home

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-09-03T12:36:01+00:00

    Hello Matthew D Richards,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you!

    I'm sorry to hear you're having trouble after changing the SMTP address and creating a new shared mailbox. It seems that the Windows Live ID was still set incorrectly. Now, you want to change the Windows Live ID via PowerShell. Our primary focus is on Outlook basics, and I'd like to provide some guidance regarding your query.

    To change the Windows Live ID via PowerShell, follow these steps:

    1. Install & Connect:
       Set-ExecutionPolicy RemoteSigned
       Install-Module MsOnline
       Import-Module MsOnline
       Connect-MsolService
      
    2. Change the Windows Live ID: Once connected, you can change the User Principal Name (UPN) using the Set-MsolUserPrincipalName cmdlet. Here is an example:
       Set-MsolUserPrincipalName -UserPrincipalName "******@domain.com" -NewUserPrincipalName "******@domain.com"
      
      Reference: Set-MsolUserPrincipalName (MSOnline) | Microsoft Learn
    3. Verify the Changes: After making the changes, you can verify them by running:
       Get-Mailbox -Identity "******@domain.com" | Format-List WindowsLiveID,PrimarySmtpAddress
      

    If you continue to experience difficulties after implementing these recommendations, I recommend reaching out to Microsoft PowerShell support/community. Please visit the Microsoft PowerShell Community; Experts in this category possess extensive knowledge of these issues and can provide tailored solutions to unique problems.  I apologize for redirecting you to a different community, but I believe this step will ensure faster and more accurate assistance for your specific scenario. Thank you for your cooperation and understanding. Please do not hesitate to post your queries in Microsoft Community, and we will always do our best to assist you! 

    Sincerely

    Feroz Mahmud | Microsoft Community Moderator

    0 comments No comments
  2. Anonymous
    2024-09-04T08:22:24+00:00

    Hi Feroz.

    Thank you for getting back to me regarding this issue

    Changed the current admin account to another name that does not include the word "admin" then tried to run the command New-Mailbox -Shared -Name Admin -DisplayName Admin -Alias ADM -PrimarySmtpAddress "admin@" which then gave me an error which said that it is still recognizing the admin@ email address despite changing it in 365. Attempted to change the name of the user account to OLD and the SMTP address as old@ then try to create a shared mailbox under the name "Admin@". Despite my efforts it is still Recognizing the a SMTP address under "admin@"

    All the best

    Matthew

    0 comments No comments