File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 18741874 Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers
18751875 Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers
18761876
1877- $Appx = (Get-AppxPackage * MicrosoftWindows.Client.CoreAI* ).PackageFullName
1878- if ($Appx) {
1879- $Sid = (Get-LocalUser $Env:UserName).Sid.Value
1880- New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
1881- Remove-AppxPackage $Appx
1877+ $Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName
1878+
1879+ $Sid = (Get-LocalUser $Env:UserName).Sid.Value
1880+ New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force
1881+ Remove-AppxPackage $Appx
18821882 }
18831883 "
18841884 ],
You can’t perform that action at this time.
0 commit comments