Relative Content

Tag Archive for javasmbsmbj

Is it possible to mount “hidden”/”admin” SMB shares with the hierynomus / smbj Java library?

Attempting to connect to a so called hidden or administrative share (such as c$) does not work for me with the latest version of smbj (0.13.0), resulting in an STATUS_ACCESS_DENIED (0xc0000022) for a share I have access to. Other shares work fine, so the rest of my connection setup seems to be correct. The code in question is a simple session.connectShare("c$"), where as stated, session.connectShare("someShareWithoutDollar") works perfectly fine, and using my credentials with other software to access the hidden share also works.