Skip to content

powershell#

Windows: Bluetooth Headset Connected but No Sound and No Microphone

On Windows 10/11, the headset shows Connected, but the music stays on the laptop speakers and no application lists the microphone. Re-pairing fixes it, until the next time.

A Bluetooth headset is two independent device stacks, and the "Connected" badge only covers the Bluetooth link. This post reads both stacks from the registry, and restarts the single PnP device that is stuck.

Terminate Powershell script or session

I always asked myself how to terminate a Powershell script or session, each time I needed to do some tests by myself and also searched on Google. But I could never remember it. So I would like to take this post to note it down, the next time I need to terminate, just need to come back to here.

Use Powershell to manage Windows Scheduled Task

A recent project made me to use the Windows scheduled task to execute periodically some python scripts. After the project, I find using Powershell to manage the Windows scheduled task is not so straightforward, that's why I opened this post to share my experience on some common usage, and hope this can save your time if you also need to use it.