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

Do not restart Explorer when in sysprep mode #191

Closed
helge000 opened this issue Feb 10, 2025 · 0 comments
Closed

Do not restart Explorer when in sysprep mode #191

helge000 opened this issue Feb 10, 2025 · 0 comments
Assignees

Comments

@helge000
Copy link
Contributor

Describe the bug
When in sysprep mode, we are only applying changes to the default user profile. There is no need to Restart Explorer in this case. Further, it can hamper cmd script execution.

Additional context
I just encoutered this. I wanted to call windebloat with -silent and -sysprep from another cmd script form OOBE Shift-F10-Console. My script terminates because RestartExplorer kills the CMD window as it is a subprocess from the running Explorer instance.

PR follows.

helge000 added a commit to helge000/Win11Debloat that referenced this issue Feb 10, 2025
- Since Settings are applied to Default Profile, calling RestartExplorer
  does nothing
- RestartExplorer also terminates all processes witch might have called
  WinDebloat in the first place
@Raphire Raphire self-assigned this Feb 12, 2025
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