--- title: "MS Intune Deployment for Windows" slug: "intune-deployment-for-windows" updated: 2026-08-26T18:05:49Z published: 2026-08-26T18:05:49Z canonical: "support.nectarcorp.com/intune-deployment-for-windows" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.nectarcorp.com/llms.txt > Use this file to discover all available pages before exploring further. # MS Intune Deployment for Windows This document provides the required steps and scripts to deploy the NectarEPC Agent via Microsoft Intune. All examples below use version **3.1.183**; update version numbers and paths as appropriate for your environment. ## Prerequisites ### ***D****irectory Structure*** To build the Intune package please make sure that the packages are in a single location. Example working directory for packaging (paths will vary by customer environment): ```custom C:\Users\testUser\Downloads\NectarEPC-v183\ │ ├─ NectarEPClientInstaller64-3.1.183.exe ├─ install-nectar.cmd ├─ uninstall-nectar.cmd ``` For assistance, please contact [support@nectarcorp.com](mailto:support@nectarcorp.com) ### *Code* In your directory containing the EPC installer executable (NectarEPC-v183 in the example above), add these 2 files: NoteNote that you must alter **install.cmd** by inputting the provided parameters for Org ID, Org Group ID, Domain Name, and Domain password. Replace all values between <...> for the above listed parameters. Be sure not to delete the \" for Domain Password. If these parameters were not provided to you, please contact support@nectarcorp.com #### *install.cmd* ```shell @echo off setlocal set "SETUP=%~dp0NectarEPClientInstaller64-3.1.183.exe" set "LOGDIR=%ProgramData%\NectarEPC\InstallLogs" if not exist "%LOGDIR%" mkdir "%LOGDIR%" >nul 2>&1 "%SETUP%" /s /v"/qn AGENT_NAME=%USERNAME% AGENT_ORGID= AGENT_GRPID= MGMT_DOMAIN_NAME= MGMT_DOMAIN_PASS=\"\" CONTROLLER_CSV=neccontroller.us.nectar.services:40006 CONTROLLER_PORT_ISFIXED=FALSE AGENT_LOG_LEVEL=INFO /L*v %LOGDIR%\NectarEPC_USER.log" exit /b %ERRORLEVEL% ``` #### *uninstall.cmd* ```shell @echo off setlocal EnableExtensions EnableDelayedExpansion set "LOGDIR=%ProgramData%\NectarEPC\InstallLogs" set "LOG=%LOGDIR%\NectarEPC_uninstall.log" if not exist "%LOGDIR%" mkdir "%LOGDIR%" >nul 2>&1 echo [%date% %time%] Starting uninstall > "%LOG%" REM --- Find the Nectar EPC product code --- for /f "tokens=2 delims={}" %%G in ('reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall /s /f "Nectar EPC" 2^>nul ^| find "{"') do ( set "PRODUCT={%%G}" goto :found ) for /f "tokens=2 delims={}" %%G in ('reg query HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall /s /f "Nectar EPC" 2^>nul ^| find "{"') do ( set "PRODUCT={%%G}" goto :found ) echo Product code not found >> "%LOG%" exit /b 0 :found echo Found product code %PRODUCT% >> "%LOG%" msiexec /x %PRODUCT% /qn /norestart /L*v "%LOGDIR%\NectarEPC_msi_uninstall.log" REM --- Cleanup (defensive) --- rmdir /s /q "C:\Program Files\Nectar\EPC" >nul 2>&1 exit /b %ERRORLEVEL% `` ``` ### *Packaging Command* The IntuneWinAppUtil.exe must be outside of the NectarEPC-v183 folder. Run the following command to build the `.intunewin` package, after modifying the command so the proper directory paths are reflected: ```custom IntuneWinAppUtil.exe -c C:\Users\username\Downloads\NectarEPC-v183 -s install.cmd -o C:\Users\username\Downloads\NectarEPC-v183\output -q ``` If the command executes correctly, you should see a file called install.intunewin in the target directory (NectarEPC-v183) ## Installation Instructions ### *Upload App* In **Intune Admin Center → Apps → Windows → Add → Windows app (Win32)** You must select Win32. ### ***App Information*** Select the installl.intunewin created [above](/v1/docs/intune-deployment-for-windows#packaging-command). | **Field** | **Value** | | --- | --- | | App package file | install.intunewin | | Name | Nectar EPC 3.1.183 | | Publisher | Telchemy Inc | | Installer type | Command line | | Install command | cmd.exe /c install.cmd | | Uninstall type | Command line | | Uninstall command | cmd.exe /c uninstall.cmd | | Installation time | 60 minutes | | Allow uninstall | Yes | | Install behavior | **User** | | Device restart | No specific action | | **Code** | **Type** | | --- | --- | | 0 | Success | | 1707 | Success | | 3010 | Soft Reboot | | 1641 | Hard Reboot | | 1618 | Retry | ### ***Requirements*** **Check operating system architecture:** No. Allow this app to be installed on all systems. **Minimum operating system:** Windows 11 21H2 ### ***Detection Rule*** **Rules Format:** Manually configure detection rules Click add: **Rule type:** File **Path:** C:\ProgramData\Nectar\EPC\Agent **File or folder:** nectarepc **Detection method:** File exists **Associated with 32-bit app:** No ### ***Assignments*** Under **Assignments → Required**, add: **All devices** *(or a test device group)* **End User Notifications:** Show all toast notifications **Delivery optimization priority:** Content download in foreground **Install time:** As soon as possible ## **Conclusion** After the application finishes installing, users should see the Nectar icon in the systray area. Click on the Status line and you will see: ![](https://cdn.document360.io/f8330b7a-360f-4ca0-b0ac-2664b7c04c49/Images/Documentation/image-1776105802707.png?sv=2026-02-06&spr=https&st=2026-11-25T07%3A56%3A26Z&se=2026-11-25T08%3A56%3A26Z&sr=b&sp=r&sig=lU9X%2FkWkrUJKodi0zxWTmJqueWaJggM4PgWVtXgtewU%3D) For additional questions and concerns, please contact support@nectarcorp.com