Windows Recon commandline parameters

Not applicable

To follow up Sean's previous thread on recon scheduling in windows, I believe the info we're looking for is a little more specific. I've gone over the docs, both for casper suite and recon suite, to see if I could find any description of commandline switches for recon for windows, so that we could automate the authentication process to the JSS server through a batch file when we have task scheduler call recon, but I haven't been able to find anything like that. John, I noticed you mentioned in a couple of threads historically 'passing your favorite switches' to recon in a batch file... I assume you know more than we do about it. Care to point us somewhere to find those commandline parameters? It would be much appreciated.

2 REPLIES 2

Not applicable

Here you go:
Adding With a Group Policy or Script (Windows only)
Recon.exe can be run in the background on windows. This can allow you to
add computers to the database without touching them, much like the Scanner
feature allows you to do for computers running Mac OS X 10.2 or later. To do
this, you will need to have a group policy or a script that runs the
following
command:
path oRecon.exe -autorun -server <IP Address of your JSS>
If the computers are not already in the JSS, you will need to provide a
username and password to add the computers as well. A complete command
might look something like this (command should be entered without
linebreaks):
F:Recon.exe -autorun -server 10.0.1.4 -username admin -
password pass1234
Note: You should create a limited account that only has privileges to add
computers to the database if you want to use this method.

If you want to do this via task scheduler you will need to create a batch
file that calls recon.exe and recon.exe would need to be on the local HDD.
With task scheduler you should be able to kick it off a 12 am at a scheduled
interval.

The batch file would look something like

C:jamf econ.exe ­autorun ­server jss.myco.com ­username casper ­password
thefrendlyghost
Exit

ernstcs
Contributor III

We had some old information like this:

"C:Where_EverRecon.exe" -autorun -server <server_dns/ip> -username <username> -password <password>

I'm not sure if this is still true, but I'm also still not sure how stable the Recon.exe piece is. We've only used it in testing...

Craig E