Minimal PowerShell logon script that waits, checks for the ASUS Sonic-related asusns process, and stops it if it is running.
This repository packages a single PowerShell script intended for Windows logon or startup workflows where the asusns process should be terminated automatically after sign-in.
sonic.ps1- Waits 120 seconds, checks forasusns, and force-stops it when present
- Windows
- PowerShell
- Permission to stop the target process on the machine where the script runs
Run the script manually:
powershell -ExecutionPolicy Bypass -File .\sonic.ps1Or assign it as a logon script through your local or domain policy workflow.
- The script waits 120 seconds before checking the process state.
- The target process name is currently set to
asusns. - The script uses
Stop-Process -Force.