Junction.exe is a command-line tool produced by Sysinternals. Before using it, it is recommended to copy it to the%systemroot%/system32 directory
Create a "junction directory" named D:/link, pointing to D:/windows:
Junction D:/link D:/windows
Delete "Connect directory" but "Keep content from the original directory":
junction-d D:/link
Subinacl
is a tool software provided by Microsoft for Rights Management of files, registries, services, and other objects.
Authorizing using the tool Subinacl.exe
the command syntax for subinacl is:
Subinacl/service \\MachineName\ServiceName /grant=[domainname\]username[=access]
The values that Access can accept are as follows:
F:full Control
R:generic Read
W:generic Write
X:generic EXecute
L:read ControL
Q:query Service Configuration
S:query Service Status
E:enumerate Dependent Services
C:service Change Configuration
T:start Service
O:stop Service
P:pause/continue Service
I:interrogate Service
U:service user-defined Control Command
subinacl/subdirectories " \\ servername\d$\* "/grant=administrators=f
subinacl/subdirectories " \\ SERVERNAME \ XX $\ XX \ * "/grant=administrators=f
Windows File Management tools: Junction and SUBINACL