[go: nahoru, domu]

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

Explorer.exe not reopening #67

Closed
Gitzillas opened this issue Jun 5, 2024 · 9 comments
Closed

Explorer.exe not reopening #67

Gitzillas opened this issue Jun 5, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Gitzillas
Copy link
Gitzillas commented Jun 5, 2024

Hello,

New to github but I just wanted to post that when I run your script with the parameters -Silent -RemoveApps -RemoveGamingApps -DisableWidgets, Explorer .exe is terminated but then never reopens. I have to manually go in and reopen it through task manager. Are you seeing the same issue on your end?

This is on Windows 11 build 22631.3672

Thanks!

@Raphire Raphire self-assigned this Jun 5, 2024
@Raphire
Copy link
Owner
Raphire commented Jun 5, 2024

Heya,

I have run into this in the past, but I wasn't able to figure it out until now. It seems like restarting explorer.exe only works properly if the powershell process and OS architecture match (ie. powershell is run as a 64 bit process on a 64 bit OS).

Do you remember if this was also the case when you ran into this issue?

@Raphire Raphire added the bug Something isn't working label Jun 5, 2024
@Gitzillas
Copy link
Author

Thanks so much for getting back to me so quickly!

Yes, it is a 64bit process running on a 64bit OS. I re-ran it just to be sure and I get the explorer.exe crash with no reinitialization again.

Raphire added a commit that referenced this issue Jun 5, 2024
Added new MS Teams client to supported apps list
@Raphire
Copy link
Owner
Raphire commented Jun 5, 2024

Hmm that's interesting. Do you run any antivirus other than Windows Defender?

Also, could you be so kind to try it again for me with the latest version of the script? I have added a check that prevents the issue I discussed. It shouldn't do anything if the process and OS match, but I just want to confirm if Windows isn't up to any funny business 🙃

@Gitzillas
Copy link
Author

Yes, we run Crowdstrike. I could try running it before I install crowdstrike to see if that resolves it.

I pulled the latest version of the script and had the same thing happen. I'll run it before crowdstrike is installed and see if that makes a difference then get back to you. Thanks again!

@Raphire
Copy link
Owner
Raphire commented Jun 5, 2024

Thanks!

I have found a different way to restart the explorer process that may work better. Could you try running this for me in powershell: Stop-Process -processName: Explorer

Explorer should automatically be restarted in this case, the current method the script uses relies on manually stopping explorere with taskkill /f /im explorer.exe and restarting it with Start-Process explorer.exe.

@Gitzillas
Copy link
Author

Stop-Process -processName: Explorer asked me to confirm but then it restarted explorer without issue. Not sure if the confirm will be an issue in your script or not.

@Raphire
Copy link
Owner
Raphire commented Jun 5, 2024

That's great! It looks like we can force our way past the confirmation 😄

I'll update the script to use this method.

P.S. I really appreciate the quick response and help with figuring out this issue!

@Gitzillas
Copy link
Author

Just pulled the newest version and ran again, explorer restarted perfectly! Thanks so much for your help!

@Raphire
Copy link
Owner
Raphire commented Jun 5, 2024

That's great to hear! Thank you for your help aswell!

Closing issue

@Raphire Raphire closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants