Fix Restore-MsolUser LiveId Error for a Microsoft 365 User
Question details
Restore a deleted cloud-only Microsoft 365 user when Restore-MsolUser reports an invalid LiveId parameter.

- 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.
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.
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.
In the Microsoft Entra admin center, open Identity > Users > Deleted users and select the account. Copy its object ID.
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.
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.
Return to Microsoft Entra admin center > Identity > Users > All users and look for the restored account using its new UPN.

Use the legacy Restore-MsolUser command where still available
The original workaround specifies both the deleted user's object ID and a new UPN, but depends on the retired MSOnline service.
Contact Microsoft support if restoration still fails
Request a tenant-specific investigation when the restore command continues to return an error.
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.

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.




