mirror of
https://github.com/massgravel/get.activated.win
synced 2026-01-16 14:04:18 -05:00
Clear false detection
This commit is contained in:
11
index.html
11
index.html
@@ -15,7 +15,7 @@ if (-not $args) {
|
||||
if ($ExecutionContext.SessionState.LanguageMode.value__ -ne 0) {
|
||||
$ExecutionContext.SessionState.LanguageMode
|
||||
Write-Host "PowerShell is not running in Full Language Mode."
|
||||
Write-Host "Help - https://gravesoft.dev/fix_powershell" -ForegroundColor White -BackgroundColor Blue
|
||||
Write-Host "Help - https://massgrave.dev/fix_powershell" -ForegroundColor White -BackgroundColor Blue
|
||||
return
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ if (-not $args) {
|
||||
catch {
|
||||
Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
|
||||
Write-Host "Powershell failed to load .NET command."
|
||||
Write-Host "Help - https://gravesoft.dev/in-place_repair_upgrade" -ForegroundColor White -BackgroundColor Blue
|
||||
Write-Host "Help - https://massgrave.dev/in-place_repair_upgrade" -ForegroundColor White -BackgroundColor Blue
|
||||
return
|
||||
}
|
||||
|
||||
@@ -131,10 +131,7 @@ if (-not $args) {
|
||||
else {
|
||||
saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el $args""" -Wait -Verb RunAs
|
||||
}
|
||||
|
||||
CheckFile $FilePath
|
||||
|
||||
$FilePaths = @("$env:SystemRoot\Temp\MAS*.cmd", "$env:USERPROFILE\AppData\Local\Temp\MAS*.cmd")
|
||||
foreach ($FilePath in $FilePaths) { Get-Item $FilePath -ErrorAction SilentlyContinue | Remove-Item }
|
||||
Remove-Item -Path $FilePath
|
||||
} @args
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user