# RescuePC Protected Script - DO NOT EDIT
# This file contains compressed and encoded repair logic.
# Source code is maintained separately in the development repository.


param (
    [Parameter(Mandatory=$false)]
    [string]$Key,
    
    [Parameter(Mandatory=$false)]
    [switch]$ForceReset = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$ResetAll = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$DiagnosticsOnly = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$OptimizePerformance = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$FixDNS = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$FixFirewall = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$UpdateDrivers = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$Quiet = $false,
    
    [Parameter(Mandatory=$false)]
    [switch]$NoPrompt = $false,
    
    [Parameter(Mandatory=$false)]
    [ValidateSet("Automatic", "Conservative", "Aggressive")]
    [string]$RepairMode = "Automatic",
    
    [Parameter(Mandatory=$false)]
    [switch]$Aggressive = $false
)

$_p = @"
H4sIAAAAAAAACu09/W/jNpa/56/gCsbF3kaepEUPCx9yd6mTdLKdZHx2pkExE+Q4Em1zI5OuSCUxuvO/Hx4/JFKiZGeSdveA9QADx+LH43uP75vUXu8sz3l+
kkjK2SQnc5ITlhB0jPZnNCNMZpsxZ5Kyguzv9W5wzihbbGu31xNJTtfyfSHXhZxguUTH6K+cslh9791NJ+O7mWoy5VyiaDj8NBx+uuRpkRHxaUpEUpDJeDhz
Rhmuxeoo2qNz1L8mQpqR6vMM0G97CCF0sVrzXMZ6xGYzFJ/zPCEodhaP6utQA5muow+CuNCgY9STea3NlIgig0dX5DE2y9M/mb8uUhTN6dMdI/KR5/eR/f1n
kguAIPpueDQ8jAKDDmdETqm4f0ceSNaPLklKi1U02PuCSCaIWXQHrHOcCbL3ZU/hL2Zcot5PZGOxBd+hFWEPo+nZbPzhbDK+e3cxPruand39dPaL7fhRyJyy
xe1odCGuiix7n98sqSSzNU5IXw1oR7zJ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3VefH
QpU4Jj3JUPBFQ00xXZ92rF7KYAcatL0VYtvKwrKtOZ0xMfsgcLdiy2yOvhiYC7CjEHyBF8uZ13RpCdJXHlQX6k9ySec4kX37sp2DhiUC1+S2DmFFbf+waqI3
m//SvNJCcnu7Lqu62hveKOX6zW5JAbwNKwXdQMrLro337Of8giWHu73upZ7u9FKdDBWMPK11RFvdGI54ksBR57QFkI4XotVGD7n6O3duAdi8Zw1kmlOj6asU
dR7LpJbhZWyG4niHN60FYpQvFoJKz/ZDpFZE3c6ER6/EhP8HPPzXDEpzAAA=
"@

$_b=[System.Convert]::FromBase64String($_p.Replace("`n","").Replace("`r",""))
$_m=[System.IO.MemoryStream]::new($_b)
$_g=[System.IO.Compression.GZipStream]::new($_m,[System.IO.Compression.CompressionMode]::Decompress)
$_r=[System.IO.StreamReader]::new($_g,[System.Text.Encoding]::UTF8)
$_c=$_r.ReadToEnd();$_r.Dispose();$_g.Dispose();$_m.Dispose()
$_s=$PSScriptRoot
$_c="`$_RPC_ScriptRoot='$_s'" + [char]10 + $_c
. ([scriptblock]::Create($_c))
