Powershell Core 6.2 Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

Like the filesystem provider, the registry provider implements the provider cmdlets. This allows you to interact with the registry in your scripts. To overcome the issue of not being able to map a remote registry hive, the Invoke-Command cmdlet can be used.

While the filesystem works with files and folders, the registry works with keys and values. This structure may look like the filesystem, but the implementation is slightly different. In order to access files, any Item cmdlet will do. To access registry values, the Item cmdlets certainly work, but to retrieve only the content of a value, you need to use the ItemProperty cmdlets.