Powershell script to switch between logged in battlenet accounts
This script will:
- Prompt you to select an account
- Stop battle.net
- Change battle.net's configuration file
- Restart battle.net
Battle.net will prompt for your password the first time you switch to each account, but will remember it for future runs. This script does not save passwords.
- Download it to your 'Documents' folder
- Right click on your desktop and select 'create shortcut'
- Enter the following:
%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe -command "& %USERPROFILE%\Documents\battlenet-account-switch.ps1"
If you download it to somewhere other than Documents, you'll need to update the quoted text.
Accounts:
1. fred@example.com
2. fredsalt@example.com
Selection (1-2): 2
Battle.net is not running.
Updating configuration file...
Launching battle.net...
Thanks to @lemasato for his AHK implementation, and description of the method on Reddit. I wanted something that didn't depend on AHK, and was easier to inspect.
This script is MIT-licensed.