Fix script block, print homepage info
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# This script is hosted on <b>https://get.activated.win</b> for <b>https://massgrave.dev</b><hr><pre>
|
||||
|
||||
if (-not $args) {
|
||||
Write-Host 'Homepage:' -ForegroundColor White -BackgroundColor DarkGreen -NoNewline
|
||||
Write-Host ' ' -NoNewline
|
||||
Write-Host 'https://massgrave.dev' -ForegroundColor White -BackgroundColor Blue
|
||||
}
|
||||
|
||||
& {
|
||||
$psv = (Get-Host).Version.Major
|
||||
$troubleshoot = 'https://massgrave.dev/troubleshoot'
|
||||
|
||||
@@ -120,3 +127,4 @@ if ($psv -lt 3) {
|
||||
|
||||
$FilePaths = @("$env:SystemRoot\Temp\MAS*.cmd", "$env:USERPROFILE\AppData\Local\Temp\MAS*.cmd")
|
||||
foreach ($FilePath in $FilePaths) { Get-Item $FilePath -ErrorAction SilentlyContinue | Remove-Item }
|
||||
} @args
|
||||
|
Reference in New Issue
Block a user