@echo off setlocal enableextensions :: these SHOULD NOT have spaces in them, or certutil will throw a fit! :: (wrapping paths with quotes also causes certutil to fail, YAY.) set mozcertutil=\\fileserver\Sysadmin\nss\certutil.exe set newprofile=\\fileserver\Sysadmin\default-mozilla-profile\ set cafile=\\fileserver\Sysadmin\ca.pem set caname=My Certificate Authority md "%newprofile%" "%mozcertutil%" -A -n "%caname%" -t "TCu,TCu,TCu" -i "%cafile%" -d %newprofile%