Hello Schlaepfer, Lars
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
There could be several reasons why this is happening, such as a misconfiguration of the task, a problem with the PowerShell script, or an issue with the VM itself.
Before we proceed, I would recommend checking the following:
Check the task history to see if there are any error messages or warnings that could help identify the issue.
Verify that the PowerShell script is still working as expected. You can do this by running the script manually and checking for any errors.
Check the event logs on the VM to see if there are any errors or warnings related to the Task Scheduler.
Ensure that the VM is up-to-date with the latest Windows updates and patches.
If none of the above steps help, you may want to try recreating the task from scratch. This can help identify any misconfigurations or issues with the original task.
If the issue persists, it may be worth considering rebuilding the VM. However, this should be a last resort, as it can be time-consuming and may result in data loss.
I hope this helps!