Password & Account Recovery

Fix Restore-MsolUser LiveId Error for a Microsoft 365 User

Natalie TaylorNatalie Taylor Nov 25, 2026 868 views

Question details

Restore a deleted cloud-only Microsoft 365 user when Restore-MsolUser reports an invalid LiveId parameter.

Fix the Restore-MsolUser LiveId Error for a Microsoft 365 User
Product
Microsoft 365 and Microsoft Entra ID
Device & OS
not provided
Scenario
An administrator is restoring a deleted cloud-only user account.
Observed behavior
Restore-MsolUser fails with an “Invalid value for parameter: LiveId” error.
Before you start

Confirm that the user is still listed under Microsoft Entra admin center > Identity > Users > Deleted users; deleted users are generally recoverable for 30 days. Record the user's object ID and choose an unused user principal name (UPN) in a verified domain.

Solution 1Recommended

Restore the user with Microsoft Graph PowerShell

Use the current Microsoft Graph PowerShell approach to restore the deleted user with a new UPN and reconcile proxy address conflicts.

The MSOnline module and Restore-MsolUser are retired. Microsoft Graph PowerShell is the current alternative for supported tenants.

1
Find the deleted user

In the Microsoft Entra admin center, open Identity > Users > Deleted users and select the account. Copy its object ID.

2
Connect to Microsoft Graph

In PowerShell, install the Microsoft.Graph module if needed with Install-Module Microsoft.Graph, then run Connect-MgGraph -Scopes "User.ReadWrite.All" and sign in with an appropriately privileged administrator account. Grant admin consent if prompted.

3
Restore with a new UPN

Run Restore-MgDirectoryDeletedItem -DirectoryObjectId "<object-id>" -BodyParameter @{ autoReconcileProxyConflict = $true; newUserPrincipalName = "newname@verified-domain.com" }, replacing the placeholders with the deleted user's object ID and an unused UPN in a verified domain.

4
Verify the account

Return to Microsoft Entra admin center > Identity > Users > All users and look for the restored account using its new UPN.

Restore the user with Microsoft Graph PowerShell
Check permissions and conflicts: Restoration requires suitable Microsoft Graph permissions and an appropriate Microsoft Entra administrator role. If the command reports a conflict or permission error, review the error details before retrying.
Free Microsoft Office alternative

Work with Office files in WPS Office while account recovery is investigated

WPS Office is a free, lightweight Microsoft Office alternative with a familiar interface and support for common Office formats, making it easier to move between applications. It does not restore Microsoft 365 or Microsoft Entra accounts.

Open local Office files while a Microsoft 365 account issue is investigatedCompatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXFamiliar editing interface for an easier transitionFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why specify a new UPN when restoring the user?

A new, unused UPN can help resolve a name conflict associated with the deleted account. Choose one in a verified domain and pass it as newUserPrincipalName in the Microsoft Graph restore request.

Where can I find the deleted user's object ID?

In the Microsoft Entra admin center, go to Identity > Users > Deleted users and select the account to view its object ID.

Can I still use Restore-MsolUser?

Restore-MsolUser is part of the retired MSOnline module and may no longer work. Use Microsoft Graph PowerShell to restore supported deleted users instead.

What if the deleted user is no longer listed?

Check Identity > Users > Deleted users in the Microsoft Entra admin center. Users are generally recoverable for 30 days after deletion; after that, the account may have been permanently deleted and cannot be restored.

Does WPS Office restore a Microsoft 365 account?

No. Account restoration must be performed through Microsoft Entra ID or Microsoft Graph, or investigated by Microsoft support. WPS Office can be used separately to work with compatible Office files.