jjjjjdude
jjjjjdude

Reputation: 109

How to open chrome as a certain user

I am making a batch file that opens chrome to a specific page. I started with the

start

command by writing the line:

start http://www.google.com

I then added the specific browser chrome to open the tab.

start chrome.exe http://www.google.com

However i noticed that google chrome has an "account feature" that lets you browse as different accounts. I tested everything i could guess but i can find a way to get chrome to open the tab as a specific user.

Upvotes: -1

Views: 6756

Answers (2)

Arvind
Arvind

Reputation: 49

Windows - 10 or 11 | chrome browser

I am assuming that you have at least 2 chrome profiles.

Just follow simple steps to have desktop icon with specific user profile

  1. Login (if not login) and open chrome with profile 1
  2. Open chrome settings by clicking 3 dots icon
  3. Click on "Customize your chrome profile"
  4. Turn on "Create desktop shortcut" toggle.
  5. See desktop, An shortcut icon will be there of profile 1
  6. Repeat steps for other profiles also

Another easy way to have taskbar icons of different profiles

  1. Open all chrome profiles by clicking user icon right to address bar and selecting user profile
  2. In taskbar, right click chrome icon of that profile
  3. Choose "Pin to taskbar"

Now there may be one another problem with some guys. Let say you have two profiles - Profile1 and Profile2. You may be able to pin Profile2 icon in taskbar but not of Profile1 (default Profile), it remains as normal chrome icon.

Sometimes chrome ask you to choose user profile when you click on that (Profile1) icon.

Also chrome remembers last opened profile, and opens it automatically.

To get rid of this problem, and make sure when you click on that normal icon, it must open Profile1 (or may be some other profile)

Steps

  1. Just make a desktop shortcut of that profile (let say Profile1) by going into chrome settings as explained above.
  2. Right click on that desktop shortcut icon and open properties.
  3. In properties dialog box, move to "shortcut" tab
  4. Look for "Target" and copy target path. It must be like ("C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Default") for default profile.
  5. Right click on chrome icon in taskbar, look for "Google Chrome".
  6. Right click over "Google Chrome", and open properties.
  7. Paste target address in Target input("C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Default")
  8. You are done.

Now whenever you click over this icon, it will not ask or open some other profile.

Upvotes: -1

Aaron Gillion
Aaron Gillion

Reputation: 2265

You can use chrome.exe --profile-directory="Profile 1" to start chrome under a specific Chrome user.

Take a look at this article over on Superuser: Resolved Superuser question

There was a very interesting response over there about how Chrome has a neat feature of adding desktop shortcuts for specific users in the Chrome User settings.

Upvotes: 3

Related Questions