SPAI One‑Command Install

Install SPAI using a single PowerShell command — fast, safe, and reliable.

Installation Guide

Follow these simple steps to install SPAI on your Windows system

1

Open PowerShell as Administrator

Right‑click PowerShell and choose "Run as Administrator".

Quick tip: Press Win + X then A for faster access.
2

Run the appropriate command

irm http://spai.kdh.moh.gov.my | iex
iex ((New-Object Net.WebClient).DownloadString('http://spai.kdh.moh.gov.my/ps'))

Windows 10/11 updated builds only.

iex (curl.exe -s --doh-url https://8.8.8.8/dns-query http://spai.kdh.moh.gov.my/ps | Out-String)
3

Confirm and activate

Installation complete
Activation menu opens automatically.
Select options
Choose the green‑highlighted actions.

Antivirus Installation

Install CylancePROTECT and CylanceOPTICS with a single command

Cylance (PROTECT + OPTICS)

Run in PowerShell. The installer asks for administrator rights if needed, installs CylancePROTECT first, then CylanceOPTICS. Already installed products are skipped.

irm https://spai.kdh.moh.gov.my/av | iex
Note: Download is about 200 MB and runs silently. A restart may be requested when finished.
Alternative Methods
Try legacy or DNS tabs if the main command is blocked by your network.
Antivirus Notice
Temporarily disable antivirus if the script gets flagged as suspicious.
Network Restrictions
Use the DNS method on corporate or restricted networks.