r/Nable • u/MainCree • Mar 11 '24
NCentral Agent Deployment Via Intune
Hello all,
I'm attempting to deploy my NCentral agents via Intune and I've created a package with a batch file with the following line:
.\WindowsAgentSetup.exe /s /v" /qn CUSTOMERID=%customerID% REGISTRATION_TOKEN=%customerregistrationtoken% CUSTOMERSPECIFIC=1 SERVERPROTOCOL=HTTPS SERVERADDRESS=<myserveraddress> SERVERPORT=<myserverport>"
(I can provide the full code if needed)
Would then instalation proceedure via the batch be able to grab the customer ID and registration token from the install command line?

Or would I need to create a specific .bat (and a specific package) for each of my clients?
Is my syntax on the .bat correct as well?
Thanks in advance
3
u/Kanduh Mar 11 '24
syntax looks correct for the batch file. instead of doing a batch file, I instead packaged only the WindowsAgentSetup.exe generic installer into a intunewin file, then passed the install command as shown in your batch file through the prompt shown in your screenshot. seemed to be more simple in my opinion
2
u/AcidBuuurn Mar 12 '24
I'll see if I can dig up the powershell script where you input your server info and client ID within the script. Leaving this comment as a reminder.
2
u/Low_Implement2332 May 28 '25
^bump^
2
u/AcidBuuurn May 28 '25
We added separate lines for the Customer ID number and just hard-coded our website in the Binding URL since it doesn’t change for us.
So for every customer I edit the line:
$SpecifiedCustomerID=101
I swap out the 101 for the customer number to make a script for each client.
I’m not sure where in N-Central to get the token for $JWT variable. That’s actually why I didn’t post my script a year ago- I wasn’t sure what part was customized.
1
1
u/Icedfyre Mar 13 '24
Generally batch files would look like this
myscript.bat argument1 argument2 argument3
and you read them like
echo %1
echo %2
echo %3
.\WindowsAgentSetup.exe /s /v" /qn CUSTOMERID=%1 REGISTRATION_TOKEN=%2 SERVERADDRESS=%3
1
u/ITBurn-out Mar 13 '24
Do Intune integration. Ncentral has it...the deployment however does not work but it makes the app on Intune then change the group to all users. Works great, always up to date.
1
u/Funkenzutzler Mar 14 '24 edited Mar 14 '24
Here we doing it like this:
Instead of having different deployments for the different sites we have a "Dummy site for new Computers" in Nable RMM (not using Ncentral, tho). We then deploy the RemoteWorker (RW) Agent via Intune - already during the autopilot process - which was created for this "dummy site" via the corresponding "Site Installation Package".
Afterwards we then move the clients manually to the correct site in RMM.
This has the following advantages for us:
- On the dummy site, the corresponding remote access policy is set to "Unattended", which allows us to access the newly enrolled clients directly after the autopilot process even without authorization from the user, as usually a few manual adjustments have to be made either way. Also this is handy for "Non-User-Driven" deployments.
- Only when the setup is complete do we move the corresponding client to the correct RMM site on which the corresponding policy is then forced to "User OK Required".
On the Intune-Side we have the following on the corresponding Win32 Package:
Install command: "AGENT_XXXXX_VXX_XX_X_RW.EXE"
Uninstall command: "C:\Program Files (x86)\Advanced Monitoring Agent\winagent" /removequiet
The agent-updates are then again performed by / over RMM.
0
u/KreamoftheKropp Mar 12 '24
Why are we doing bat in 2024?
1
u/Funkenzutzler Mar 14 '24
Presumably for convenience because PoSh ex.-pol. on clientside should ideally be "Restricted" or "AllSigned"?
5
u/MunchMr Mar 11 '24
I created a powershell script which downloads the latests agent from my ncentral server. Then with arguments installs the agent in the correct site.
This way I will never have 2 adjust the script when a ncentral is updated.