*NOTE: The below steps are deprecated. Please see https://help.swif.ai/en/articles/8678106-deploy-swif-app-via-intune-silently for the new silent installation via Intune.
Setup Intune. Open the Intune Dashboard on the Microsoft Intune admin center
Click the menu item Devices → Scripts. Then click Add → Windows 10 and later.
On the Add PowerShell Script page, fill in the Name and Description. Click Next.
Open your favorite code editors or text editor on your local computer and create a Powershell script (named
swifagent.ps1
) which we will use in the next step.# Create a temporary folder
$temporaryFolder = Join-Path $Env:Temp $(New-Guid); New-Item -Type Directory -Path $temporaryFolder | Out-Null
Write-Output $temporaryFolder
Invoke-WebRequest -Uri "https://tools.swifteam.com/binary/ai.swif.go-script.exe" -OutFile "$temporaryFolder\ai.swif.go-script.exe"
& "$temporaryFolder\ai.swif.go-script.exe" -unEnroll
& "$temporaryFolder\ai.swif.go-script.exe" -enroll 6302f74d2000001f00f80919
& "$temporaryFolder\ai.swif.go-script.exe" -installAgent https://st-agent.s3.us-west-2.amazonaws.com/st-agent-windows/v1.30.0%0D/swifteam.exeFor the Script Settings, enter these values
Set up Assignments. In this step, we’ll deploy the
swifagent.ps1
to specified intune devices. Click Add all users and Add all devices or you can select devices that you want to enroll Swif.Review + add. Click Add to continue.
By default, the Intune agent will run the script within 1-2 hours.
You can speed up the sync process by going to Company Portal from Microsoft Store Apps > Open the Company Portal app.
Click on the left bar menu: Settings → Sync. Wait while the system syncs to the Intune server. After the sync is completed, it’ll show a message “Last sync on {DATE} was successful.”
The silent installation will take place within 5 minutes. If it doesn't happen, you can sync it from Intune, it will force the device to sync.
Then you can verify Swif Agent Installed by Right Click from the Windows icon and click Settings → Accounts → Access work or school.
You can check logs in C:\Program Files\Swifteam\log.txt. Or open the PowerShell terminal and then check the scheduler running
sc.exe query STService
.