mirror of
https://github.com/massgravel/get.activated.win.git
synced 2025-12-14 23:58:21 +01:00
Fix script block, print homepage info
This commit is contained in:
parent
8de888f52f
commit
1d4c5a232a
1 changed files with 111 additions and 103 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue