In this demo, I will create a new PS drive on the Registry provider.
First, I'll show this path to you from the registry console.
We are going to map the registry key that resides under HKLM,
SOFTWARE, Microsoft, and then PowerShellCore.
I'll start with New‑PsDrive command.
In the root parameter, I'll begin the path with default HKLM PS drive,
followed by SOFTWARE, then Microsoft, then PowerShellCore folder.
in the Registry provider, I'll enter Registry.
I'll name this PS drive as PowerShellCoreRegistry.
I'll then hit Enter, and we can see that the new drive got created.
We can now manage this drive using most of the commands
that we saw earlier in this module.
As of now,
I'll quickly run Get‑ChildItem that will return the subkeys present under this PS drive.