New scripts, added domains to DNS check

This commit is contained in:
camoy 2024-06-25 15:50:01 -07:00
parent 4cc1a60cb1
commit b6edfb1590
3 changed files with 48 additions and 0 deletions

18
scripts/ps/download.ps1 Normal file
View File

@ -0,0 +1,18 @@
Write-Host "---Download Wget---"
Invoke-WebRequest "https://eternallybored.org/misc/wget/1.21.4/64/wget.exe" -OutFile "C:\sctools\wget\wget.exe"
Write-Host "---Download 7-Zip---"
C:\sctools\wget\wget.exe -O "C:\sctools\7zip\7zr.exe" "https://7-zip.org/a/7zr.exe"
Write-Host "---Download git---"
C:\sctools\wget\wget.exe -O "C:\sctools\git\PortableGit.7z.exe" "https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/PortableGit-2.45.2-64-bit.7z.exe"
Write-Host "---Download Custom Resolution Utility---"
C:\sctools\wget\wget.exe -O "C:\sctools\cru\customresolutionutility.zip" "https://customresolutionutility.b-cdn.net/cru-1.5.2.zip"
Write-Host "---Download AntimicroX---"
C:\sctools\wget\wget.exe -O "C:\sctools\antimicrox\antimicrox-portable.zip" "https://github.com/AntiMicroX/antimicrox/releases/download/3.4.0/antimicrox-3.4.0-PortableWindows-AMD64.zip"
Write-Host "---Download Attract-Mode---"
C:\sctools\wget\wget.exe -O "C:\sctools\attractmode\attract.zip" "https://github.com/mickelson/attract/releases/download/v2.7.0/attract-v2.7.0-win64.zip"
Write-Host "---Download FastIO2KB---"
C:\sctools\wget\wget.exe -O "C:\sctools\fastio2kb\fastio2kb.zip" "https://github.com/JoeHowse/FastIO2KB/releases/download/2021.04.04_Easter/FastIO2KB_2021.04.04_Easter.zip"
Write-Host "---Download AutoHotKey---"
C:\sctools\wget\wget.exe -O "C:\sctools\ahk\ahk-v2.exe" "https://www.autohotkey.com/download/ahk-v2.exe"
Write-Host "---Download I-PAC---"
C:\sctools\wget\wget.exe -O "C:\sctools\ipac\winipacv2setup.exe" "https://www.ultimarc.com/winipacv2setup.exe"

26
scripts/ps/makedirs.ps1 Normal file
View File

@ -0,0 +1,26 @@
Write-Host "---Create Directories---"
New-Item -Path "C:\" -Name "sctools" -ItemType "Directory"
if ( ?$ -neq True )
{
Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES"
Write-Host "Creating the following directories has failed."
Write-Host "C:\sctools"
Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist."
Start-Sleep -Seconds 60
Exit 1
}
else
{
#PSEUDO - Continue without writing function? TODO
}
New-Item -Path "D:\" -Name "sccontent" -ItemType "Directory"
if ( ?$ -neq True )
{
Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES"
Write-Host "Creating the following directories has failed."
Write-Host "D:\sccontent"
Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist."
Start-Sleep -Seconds 60
Exit 1
}

View File

@ -37,6 +37,10 @@ function fSCDNSResolutionTest {
$vSCDNSResolutionTestResult4 = $?
Resolve-DnsName -Name "www.autohotkey.com"
$vSCDNSResolutionTestResult5 = $?
Resolve-DnsName -Name "eternallybored.org"
$vSCDNSResolutionTestResult6 = $?
Resolve-DnsName -Name "7-zip.org"
$vSCDNSResolutionTestResult7 = $?
}
#PSEUDO - Check each hostname for name resolution, if-then to next script (syscheck.ps1)