# Minimum Requirements -Version 2.0 

<#

.SYNOPSIS  This process checks registry keys on remote sysetms 

.DESCRIPTION 

ScriptsbyScott.com


 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.


.EXAMPLE     

C:\>Verify Registry Key.ps1     

#>

 

Used to get registry key information from remote servers. 

 

PowerShell
Edit|Remove
$MyCommand = { 
     
    #||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 
     
    $Path1 = "HKLM:\SOFTWARE\Microgsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_ALLOW_USER32_EXCEPTION_HANDLER_HARDENING" 
     
    If (Test-Path $Path1) 
    { 
        Try 
        { 
             
            $ReturnValue = Get-ItemProperty $Path1 | Select Object -ExpandProperty "iexplore.exe" -ErrorAction stop 
             
        } 
        Catch 
        { 
             
            $ReturnValue = $_.Exception 
             
        } 
    } 
    else 
    { 
        $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