Terminating a Process for Another User
New Release: Windows 11 24H1
I am currently facing a challenge with user switching on our Windows computers. The issue arises when multiple users are using the same computer and an application automatically launches at startup. If another user logs in through Fast User Switching, they encounter an error message indicating that the application is already running.
To address this issue, I attempted to resolve it by adjusting the application’s auto-start settings and creating a batch file with the following commands:
Code:
taskkill /im program.exe /t /f
@start “” “C:pathprogram.exe”
Subsequently, I generated a shortcut for the batch file and placed it in the C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup directory.
One potential cause of this error could be related to user permissions, specifically if some users do not have admin privileges.
New Release: Windows 11 24H1 I am currently facing a challenge with user switching on our Windows computers. The issue arises when multiple users are using the same computer and an application automatically launches at startup. If another user logs in through Fast User Switching, they encounter an error message indicating that the application is already running. To address this issue, I attempted to resolve it by adjusting the application’s auto-start settings and creating a batch file with the following commands: Code:taskkill /im program.exe /t /f@start “” “C:pathprogram.exe” Subsequently, I generated a shortcut for the batch file and placed it in the C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup directory. One potential cause of this error could be related to user permissions, specifically if some users do not have admin privileges. Read More