# Minimum Requirements -Version 2.0 


.SYNOPSIS  This process checks registry keys on remote sysetms 



 This process goes to remote systems and looks for registry key and returns the computername and key value.

This will also return an error if the key path is not found or the key.


C:\>Verify Registry Key.ps1     



Used to get registry key information from remote servers. 


$MyCommand = { 
    $Path1 = "HKLM:\SOFTWARE\Microgsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_ALLOW_USER32_EXCEPTION_HANDLER_HARDENING" 
    If (Test-Path $Path1) 
            $ReturnValue = Get-ItemProperty $Path1 | Select Object -ExpandProperty "iexplore.exe" -ErrorAction stop 
            $ReturnValue = $_.Exception 
        $ReturnValue = "HKLM:\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_ALLOW_USER32_EXCEPTION_HANDLER_HARDENING - Path Not Found" 
    Return "$Env:ComputerName, Returned Value: $ReturnValue" 
$Server = "YourServer" 
Invoke-Command -ComputerName $Server -ScriptBlock $MyCommand