Powershell Registry Cmdlets utilizing the .Net StdRegProv

This Script is a collection of PowerShell cmdlets that can be run in either x86 or x64 processes to handle common registry operations utilizing alternate registry views. This script is compatible with PowerShell versions 2.0 or later.

 
 
 
 
 
5 Star
(1)
449 times
Add to favorites
Operating System
3/3/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Error using this script:
    3 Posts | Last post January 18, 2017
    • Hi,
      
      I am seeing an error when I try to use this script:
      
      PS > Get-RegKey -Arch "64" -Computer GIS265641 -KeyPath "HKLM:\SOFTWARE\Microsoft\Windows\Cu‌​rrentVersion\Uninsta‌​ll"
      
      Computer  Architecture                                                                               KeyPath                                                       Exist
      --------  ------------                                                                               -------                                                       -----
      GIS265641 Exception calling "ExecMethod_" with "4" argument(s): "Exception from HRESULT: 0x80041008" HKLM:\SOFTWARE\Microsoft\Windows\Cu‌​rrentVersion\Uninsta‌​ll      
      
      Ideas?
      
    • Which OS are you running this cmdlet on? The error appears to indicate an incorrect parameter was passed.
    • Im running on Win7 Enterprise x64 and attempting to connect both my local machine and remote machines (which are also Win7 Enterprise x64).
      
      I also noted that the error indicates a bad parameter.
      
      TIA