Deploying Root Certificates to Firefox Browser

asked 2021-04-22T11:10:20.47+00:00
Hsu Yao Chang 1 Reputation point

I use example below to deploy certificate in another computer, but because the profile have multiple, and it can not install in another profile.
Set FFProfdir=%Appdata%\mozilla\firefox\profiles
cd %FFProfdir%
DIR /A:D /B > "%Temp%\FFProfile.txt"
FOR /F "tokens=*" %%i in (%Temp%\FFProfile.txt) do (
CD /d "%FFProfDir%\%%i"
rename cert8.db cert8.db.orig
copy "\anderson0116\CertImport\cert8.db"
DEL /f /q "%Temp%\FFProfile.txt"

ex: When I deploy it by pdq deploy software, the path will show below:
c:\windows\AdminArsenal\PDQDeployRunner\service-1\exec>cd "c:\users\administrator\AppData\Roaming\mozilla\firefox\profiles"

But when user: bruce hsu login the computer, the command does not work. How can I adjust to each profile for each account?
Thanks a lot.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,726 questions
No comments
{count} votes