On 01/25/2017 12:57 AM, William Spratt wrote:
> Hi Dan,
> 
> Rather than just the bookmarks, we set-up the user's whole Firefox profile on 
> a network drive (in their personal "drive", a space with access restricted to 
> just them) so it's backed up in exactly the way you describe.
> 
> I didn't set it up, so some of the details may be a bit vague.  We use a 
> batch file during windows log on to set it up.  Everybody's personal drive is 
> mapped to "U:", so it works the same for everybody.
> 1) mkdir U:\Firefox 
> The great thing about this command is (if it doesn't exist) it creates the 
> folder in the U drive.  If it does exist, it effectively does nothing.
> 2) Check to see if ""%userprofile%\Application 
> Data\mozilla\firefox\profiles.ini" exists.  If it doesn't, create the 
> directory "%userprofile%\Application Data\Mozilla\Firefox" and copy the file 
> Profile.ini into it (from a shared network location).
> This is the important part. Profile.ini contains the following:
> 
> "[General]
> StartWithLastProfile=1
> 
> [Profile0]
> Name=Default
> IsRelative=0
> Path=U:\Firefox
> Default=1"
> 
> 3) the last part of the batch file checks for "pref.js" and if it's not there 
> (i.e. the folder's just been created) copies over (from a shared network 
> location) one with our defaults in.  It also does some stuff I don't think is 
> relevant  - though I could be wrong.  If you start having problems during 
> testing, let me know and I'll try and figure out if it's something I've 
> skipped.
> 
> The code for this is:
> "
> rem Firefox defaults
> 
> mkdir u:\Firefox
> 
> if exist "%userprofile%\Application Data\mozilla\firefox\profiles.ini" goto 
> endff
> mkdir "%userprofile%\Application Data\Mozilla\Firefox"
> copy /y [network location]\profiles.ini "%userprofile%\Application 
> Data\Mozilla\Firefox\"
> :endff
> 
> rem copy Mozilla profile
> if exist u:\firefox\prefs.js goto endpref
> copy /y [network location]\prefs.js u:\firefox
> :endpref
> "

Thanks for the tip. Unfortunately we have more staff than computers and
the locking that takes place would most likely cause issues as time
dragged on. Trying to get certain people to logoff at the end of the day
is like squeezing water from a rock.

I am currently using GPP to push the config files and folders  needed
(and force an adblock extension install) so something like this would be
fairly simple. I'll have to look into it more.

Dan

_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to