Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

profiles.ini unable to use windows parameters (%username%) in path

  • 2 fhreagra
  • 1 leis an bhfadhb seo
  • 1 view
  • Freagra is déanaí ó cor-el

more options

hello, I'm setting up a TS enviroment with volatile profiles on TS 2008R2

I need every user to use theyr own profile at c:\firefox\%username%\defaultprofile (this folder is created by a logon script at the start of TS session from a master one and deleted at the end of the TS session)

everything is working perfectly (profiles.ini is saved in default user folder so is copied in every new created volatile profiles) except path with windows paramater %username%. -> firefox it's unable to find the profile.

If I manually edi profiles.ini changing %username% with the real username everything is OK, so I think the problem is here

There is another way to have a parameter inside the path?

hello, I'm setting up a TS enviroment with volatile profiles on TS 2008R2 I need every user to use theyr own profile at c:\firefox\%username%\defaultprofile (this folder is created by a logon script at the start of TS session from a master one and deleted at the end of the TS session) everything is working perfectly (profiles.ini is saved in default user folder so is copied in every new created volatile profiles) except path with windows paramater %username%. -> firefox it's unable to find the profile. If I manually edi profiles.ini changing %username% with the real username everything is OK, so I think the problem is here There is another way to have a parameter inside the path?

All Replies (2)

more options

Might this post get the job done?
http://forums.mozillazine.org/viewtopic.php?p=1793218#p1793218

FatJohn says:
In command prompt type: echo h:\home\%USERNAME%\profile > profile.ini or use >> instead of > to append it. Maybe you'll get it constructed the way you want.

It looks like if you create a batch (.bat) file with that line inside, you can just run that on each computer and have the correct username filled in automatically in the profiles.ini file.

Example: echo c:\firefox\%username%\defaultprofile >> profile.ini

Athraithe ag NoahSUMO ar

more options

See also -CreateProfile "profile_name profile_dir"