-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd.ps1
More file actions
20 lines (16 loc) · 700 Bytes
/
cmd.ps1
File metadata and controls
20 lines (16 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Got code from https://github.com/lstprjct/IDM-Activation-Script, Thank You lstprjct and credits to you
# Enable TLSv1.2 for compatibility with older clients
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
$DownloadURL = 'https://raw.githubusercontent.com/ShadowElixir/VariousScripts/main/scripts/scripts.bat'
$FilePath = "$env:TEMP\scripts.bat"
try {
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
} catch {
Write-Error $_
Return
}
if (Test-Path $FilePath) {
Start-Process $FilePath -Wait
$item = Get-Item -LiteralPath $FilePath
$item.Delete()
}