All Collections
Device management & compliance automation
Windows MDM
Deploy the Swif app via Intune by Powershell Script (Deprecated)
Deploy the Swif app via Intune by Powershell Script (Deprecated)
Updated over a week ago

*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.

  1. Setup Intune. Open the Intune Dashboard on the Microsoft Intune admin center

  2. Click the menu item Devices → Scripts. Then click Add → Windows 10 and later.

  3. On the Add PowerShell Script page, fill in the Name and Description. Click Next.

  4. 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.exe
  5. For the Script Settings, enter these values

    1. Script Location: Choose swiftagent.ps1 that you previously created.

    2. Run this script using the logged-on credentials: No

    3. Enforce script signature check: No

    4. Run the script in 64-bit PowerShell Host: Yes

  6. 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.

  7. Review + add. Click Add to continue.

  8. By default, the Intune agent will run the script within 1-2 hours.

  9. You can speed up the sync process by going to Company Portal from Microsoft Store Apps > Open the Company Portal app.

  10. 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.”

  11. 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.

  12. Then you can verify Swif Agent Installed by Right Click from the Windows icon and click Settings → Accounts → Access work or school.

  13. 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.

Did this answer your question?