Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\user> Remove-ItemProperty -LiteralPath 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' -Name DisableSearchBoxSuggestions -EA SilentlyContinue; Get-Process SearchHost,StartMenuExperienceHost -EA SilentlyContinue | Stop-Process -Force
PS C:\Users\user> Stop-Process -Name SearchHost,StartMenuExperienceHost -Force -EA 0; Remove-ItemProperty 'HKCU:\Software\Policies\Microsoft\Windows\Explorer' DisableSearchBoxSuggestions -EA 0; Remove-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Search' BingSearchEnabled -EA 0; Get-AppxPackage Microsoft.BingSearch,MicrosoftWindows.Client.CBS | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml" }
Get-AppxPackage : Не удается преобразовать "System.Object[]" в тип "System.String", необходимый для параметра "Name". У
казанный метод не поддерживается.
строка:1 знак:295
+ ... -AppxPackage Microsoft.BingSearch,MicrosoftWindows.Client.CBS | % { A ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AppxPackage], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPackageComma
nd
PS C:\Users\user>