Hard to reach Registry Hive
Had an instance of needing to reach HKEY_CLASSES_Root with powershell and found it doesn't have an HKCR built in.
Ended up finding a post that had a simple solution and wanted to pass it along. For full details see:
https://blogs.msdn.microsoft.com/lior/2009/06/18/what-no-hkcr-in-powershell/
Otherwise here is the important bit that I used:
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
Ended up finding a post that had a simple solution and wanted to pass it along. For full details see:
https://blogs.msdn.microsoft.com/lior/2009/06/18/what-no-hkcr-in-powershell/
Otherwise here is the important bit that I used:
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
Comments
Post a Comment