I am trying to write a PSscript that would return all registry keys and subkeys. I can return all the values under a registry key using the line below but I don't know how to recursively look into each subkey.
Get-ChildItem -Path Registry::HKEY_LOCAL_MACHINESOFTWAREDell*
Any help is appreciated. I am positive someone must have done this before but I can't seem to find anything.