Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Creating a new profile and making it the default in command line

  • 2 תגובות
  • 2 have this problem
  • 11 views
  • תגובה אחרונה מאת the-edmeister

more options

Hi,

When installing firefox via command line (across a large number of PCs via a batch file) I am using the -CreateProfile switch to create a profile called "branch" however what is actually created is "6p4xq5bu.branch" - how can I stop the characters at the start? I need all profiles on all PC to have the same name.

Also, once i have created a profile how do I make sure that it is the default one? Using profile manager is not an option as the install is on a few hundred PCs so I need to be able to do this from the command line

Thanks! Adam

Hi, When installing firefox via command line (across a large number of PCs via a batch file) I am using the -CreateProfile switch to create a profile called "branch" however what is actually created is "6p4xq5bu.branch" - how can I stop the characters at the start? I need all profiles on all PC to have the same name. Also, once i have created a profile how do I make sure that it is the default one? Using profile manager is not an option as the install is on a few hundred PCs so I need to be able to do this from the command line Thanks! Adam

כל התגובות (2)

more options

We tend to support end users here rather than the IT departments deploying Firefox.

Not sure I follow entirely what you are doing. You are installing Firefox then afterwards using a Firefox command to create an additional profile ?

I guess you could use a batch file to create a profile folder of the desired name, and edit or overwrite the profile.ini file to point to that named profile. Firefox itself would create the profile contents when it next runs in a similar manner to when the -CreateProfile argument is used.

Even if the full profile name is salted with additional characters that is discoverable by reading the profile.ini or the folder names contained within the Firefox directory.

Also see


You do not mention the Firefox version. Are you aware of ESR ?

To get proper advice on deployment it is probably best using the mailing list for ESR

more options

https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options (as hyperlinked by John already) See how this works. -CreateProfile profile_name

As far as that new Profile being the "default Profile", that might be a problem if the PC already has Firefox installed - as far as "your default" remaining the Default. Probably best to create the new Profile away from to normal Profile location, and not mess with a users existing installation / Profiles folderset. -CreateProfile "profile_name profile_dir"