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

Close taskschd.msc after Function "CleanupTask -Register" or "TempTask -Register" #544

Closed
6 tasks done
lucasgruembel opened this issue Nov 13, 2023 · 1 comment
Closed
6 tasks done

Comments

@lucasgruembel
Copy link

Prerequisites

  • Verify that this is not a Windows issue;
  • Refer to the system requirements;
  • Refer to the How to use;
  • I do not use a homebrew Windows image;
  • I did not tweak Windows before that could cause system instability;
  • If your issue concerns the Wrapper, please mention @BenchTweakGaming in issue

Steps to reproduce

Hello,
I run the Sophia script via "Start-Process ... -wait" in my own Script. I have the problem that my script does not continue to run after the Sophia script has finished. This is because the "CleanupTask -Register" or "TempTask -Register" functions open the taskschd.msc window, but do not close it. However, "Start-Process ... -wait" waits until the Task Scheduler window is also closed.

taskschd msc

Therefore, my question is whether it is possible to integrate the closing of the task scheduling window at the end of these functions.

Windows Version

Windows 11 Pro 23H2 (Build 22631.2428)

Sophia Script version

6.5.7

@farag2
Copy link
Owner

farag2 commented Nov 15, 2023

Hi Sorry for the late reply. I was on vacation without my PC.

  1. Why do you invoke powershell.exe from powershell.exe????? LOL just call your script with &
  2. Just edit the code! Remove this if case

that's all!

@farag2 farag2 closed this as completed Nov 15, 2023
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