Scripts that can be added to Windows Task Scheduler tasks, for automatic execution on when certain conditions are met. When the PC enters a state that triggers
a task, the actions
associated with that task are completed.
- Launch
Task Scheduler
from the Start Menu Create a Task
(from the right menu)- Name your Task - you cannot rename the task once it has been created.
- Open the
Triggers
tab in the "Create Task" window, and add triggers that the Task Scheduler listens for - example: Workstation Lock will run the task when the PC is locked. - Open the
Actions
tab in the "Create Task" window, and add actions that the PC will run, when the task is triggered - example: powershell.exe invoked on a certain script. - (Optional) Review the
Conditions
andSettings
tabs for any other settings of interest. - Click
OK
to save the task
This PowerShell script mutes the output volume on your PC.
This PowerShell script unmutes the output volume on your PC, and sets its value at a custom level (default set to 10% of max).