In Powershell (at least in Windows 10EE), certain parts of the system are exposed under a custom drive label. The two main examples I know are:
HKLM:exposes the local machine's registry as a drive.
$Env:exposes the environment variables like their own filesystem.
However, cmd and batch scripts are not able to see these drives.
So my questions are:
- How does Powershell implement these fake drive labels?
- Are they similar to mountpoints in Linux?
- Are they using some kind of pseudo-filesystem under the hood?