Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot disable SearchUI without taking ownership of the directory #142

Open
dmbekker opened this issue Dec 20, 2017 · 1 comment
Open

Cannot disable SearchUI without taking ownership of the directory #142

dmbekker opened this issue Dec 20, 2017 · 1 comment

Comments

@dmbekker
Copy link

dmbekker commented Dec 20, 2017

PS C:\Users\David\Downloads\Debloat-Windows-10-master\Debloat-Windows-10-master> .\utils\disable-searchUI.bat

C:\Users\David\Downloads\Debloat-Windows-10-master\Debloat-Windows-10-master>taskkill /F /IM SearchUI.exe
SUCCESS: The process "SearchUI.exe" with PID 6412 has been terminated.

C:\Users\David\Downloads\Debloat-Windows-10-master\Debloat-Windows-10-master>move "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy.bak"
The process cannot access the file because it is being used by another process.
0 dir(s) moved.

While running disable-searchUI.bat this error comes up. Script is running in an elevated powershell prompt.

If I use SysInternals Processexplorer it shows that SearchUI.exe is using the directory. Windows seems to restart the process before it can rename the directory. However, taking ownership of the directory seems to resolve the issues(or just shear luck..). The directory is now successfully moved.

This should be mentioned, or the script should try to take ownership. Ownership was taking manually by right-clicking the Cortana folder in Windows Explorer -> Properties - > Security -> Advanced Permissions.

@adicondrache
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants