Browse Source

suppress error on searchUI rename

pull/17/head
Alex Hirsch 9 years ago
parent
commit
b8bf972949
  1. 4
      scripts/disable-searchui.ps1

4
scripts/disable-searchui.ps1

@ -7,7 +7,9 @@ taskkill.exe /F /IM "SearchUI.exe"
# try to rename folder while SearchUI is restarting
foreach ($_ in (0..15)) {
if (Test-Path "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy") {
mv "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "$env:windir\SystemApps\_Microsoft.Windows.Cortana_cw5n1h2txyewy"
mv "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" `
"$env:windir\SystemApps\_Microsoft.Windows.Cortana_cw5n1h2txyewy" `
-ErrorAction SilentlyContinue
} else {
break
}

Loading…
Cancel
Save