Plex Media Scanner (command line) doesn't work on UNC paths

Server Version#: 1.22.3.4392
Player Version#: 4.54.5 (Web)
Hi,
I’m trying to use the command line to scan individual folders. I’ve installed “ScanInPlexScanner” from Github, but as it doesn’t seem to work on UNC paths, I’ve tried the command line scanner myself.
The following command line works fine:
“C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” -s -c 27 -d “G:\SERIES\Debris”
However the following doesn’t:
“C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” -s -c 27 -d “\\divxstation\DivX\TV Series\Debris”

The folders on the NAS (using UNC path) are scanned fine when using the GUI (“Scan library”).

Your UNC path seems to be lacking as quoted… Shouldn’t there be a double backslash to start a UNC path???

Not sure about the need to use quotation marks if the path doesn’t include spaces…

No, for some reason this forum removes the first of two backslashes from the display…
screenshot:
image
I’ve added a third backslash in the post above, now it displays correctly.
The scanner doesn’t work on UNC without the quotes either.

Found it. The scanner requires the same case to be used as in the library’s definition in the Plex DB. For some reason, the name of the NAS is in CAPS in the DB, while in the actual filesystem it is not.
The path passed through Explorer is in small case.
In other words:
this works: “C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” -s -c 27 -d “\\DIVXSTATION\DivX\TV Series\Debris”
… and this doesn’t:
“C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” -s -c 27 -d “\\divxstation\DivX\TV Series\Debris”

If you enclose that kind of stuff in backticks ```, this won’t happen.
\\DIVXSTATION\DivX\TV Series\Debris