# Registering windows network path as local texmf directory in MiKTeX

I would like to add a Windows UNC network path (e.g. \\server\path\to\local\texmf) as local texmf directory to my MiKTeX installation. I know how to add a path that has a local drive letter (e.g. C:\path\to\local\texmf), since this is described well here (Create a local texmf tree in MiKTeX) and in the MiKTeX docs (http://docs.miktex.org/manual/localadditions.html).

I could bind the UNC path (or part of it) to a local drive letter. However, I would like not to do so and add the UNC path directly.

Is there a way to do it? How? Thanks.

• You could try it with the command line command initexmf --register-root XXXX. If it doesn't work, you could make a feature request. Dec 14, 2015 at 15:52
• Good to know ...;-) Dec 14, 2015 at 16:43

Windows UNC network paths can be added as MiKTeX local texmf directories using the Windows command line.

To add a UNC path, start a console (open start menu, type cmd and choose cmd.exe). If you want to add the UNC path as administrator (i.e. for all users on your machine), be sure to start the console as administrator (in the start menu, after typing cmd, right-click on cmd.exe, choose Run as administrator and approve the Windows User Account Control request).

In the console, type

initexmf --register-root \\server\path


or, when adding for all users,

initexmf --admin --register-root \\server\path


Be sure to refresh the file name database subsequently either using the GUI or typing initexmf --update-fndb or initexmf --admin --update-fndb, respectively. If you have installed any fonts, also run initexmf --mkmaps or initexmf --admin --mkmaps.

Note 1: More information on the process is given at Create a local texmf tree in MiKTeX.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8679637312889099, "perplexity": 8031.93683453536}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-27/segments/1656103989282.58/warc/CC-MAIN-20220702071223-20220702101223-00386.warc.gz"}