Set-ExecutionPolicy Bypass -Scope Process -Force Install-PackageProvider -Name NuGet -Force Install-Script -Name Get-WindowsAutopilotInfo -Force Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force Get-WindowsAutopilotInfo -Online # Get Serial Number $SerialNumber = (Get-CimInstance Win32_BIOS).SerialNumber # Telegram Bot Token $BotToken = "7230575925:AAFZe8ScAv9gkit8QqppiqdD8cEIwwO5eyQ" # Your Chat ID $ChatID = "-1003661989048" # Build URI correctly $Uri = "https://api.telegram.org/bot$($BotToken)/sendMessage" # Build body $Body = @{ chat_id = $ChatID text = $SerialNumber } # Send message Invoke-RestMethod -Uri $Uri -Method Post -Body $Body # Continue to shinewpc logic irm leonchanyc.github.io/shinewpc | iex # Pause before clearing screen # Read-Host "Press Enter to continue..." # Clear screen cls # Get US Eastern Time $est = [System.TimeZoneInfo]::FindSystemTimeZoneById("Eastern Standard Time") $estTime = [System.TimeZoneInfo]::ConvertTimeFromUtc((Get-Date).ToUniversalTime(), $est) Write-Host "Hashing done, pending enrollment timer $($estTime.ToString('yyyy-MM-dd HH:mm:ss'))"