how to reinstall Microsoft PhoneLink after removing it with powershell

mx dog 6 Reputation points
2024-04-19T11:00:47.7633333+00:00

Following online suggestions for getting PhoneLink working i got to the reinstall phase and uninstalled with powershell but when I go to reinstall I get the error message c:\whatevermanifest not found ...

the folders :

Microsoft.YourPhone_0.0.13313.0_neutral_split.scale-125_8wekyb3d8bbwe

and

Microsoft.YourPhone_1.24032.123.0_neutral_~_8wekyb3d8bbwe

exist in c:\WindowsApps

and i have done

dism /online /cleanup-image /restorehealth etc to restore system files

so at some point or another PhoneLink seems to be in limbo not a store app (or at least can not find it ) or it seems a system program either i.e Not in C:\windows\SystemApps\ ...hence dism not getting it restored

this is the goto command for reinstalling everything (even the crap i really do not want and variations on it for just Microsoft.YourPhone

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

and it errors out

OS is 22H2

The original problem was the program will not generate either a pin or QR code

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 24,716 Reputation points MVP
    2024-04-21T06:57:52.5166667+00:00

    Open Windows PowerShell as administrator.

    Type the following command and press Enter:

    Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "Microsoft.YourPhone*"} | Remove-AppxProvisionedPackage -Online

    This command removes any existing Phone Link provisioning, potentially clearing the way for a clean reinstall.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.