how to reinstall Microsoft PhoneLink after removing it with powershell

mx dog 1 Reputation point
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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,644 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,073 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 15,191 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.

    0 comments No comments