fredemmott / battle-net-account-switcher

Powershell script to switch between logged in battlenet accounts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

battle-net-account-switcher

Powershell script to switch between logged in battlenet accounts

This script will:

  1. Prompt you to select an account
  2. Stop battle.net
  3. Change battle.net's configuration file
  4. 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.

Usage

  1. Download it to your 'Documents' folder
  2. Right click on your desktop and select 'create shortcut'
  3. 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.

Example

Accounts:

1. fred@example.com
2. fredsalt@example.com
Selection (1-2): 2
Battle.net is not running.
Updating configuration file...
Launching battle.net...

Credit

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.

License

This script is MIT-licensed.

About

Powershell script to switch between logged in battlenet accounts

License:MIT License


Languages

Language:PowerShell 100.0%