Map Users for McAfee Endpoint Encrytion using AutoIt
Below is a sample of how to map users to computers using an AutoIt script and the _McAfeeEndpointEncryption UDF. It’s not nearly as robust as the AutoDomain script, but may meet some need.
In a nutshell, the script loops over NetworkProfiles from WMI, and for each one first determines if they’re on the proper domain or not, and then see’s if the account already exists in the database. If the account is in the domain specified and already exists in the database, it maps the user to the computer. In my environment I run this immediately after the installation of the client but before the first reboot so that the users are ready after the encryption begins.
To use this script in your environment you’ll want to change:
- Change LogDir to your own local log folder (if you care to).
- Add your own username and password for the EEPCConnect.
- Add your own domain(s), replacing OURDOMAIN.
This script uses the sAMAccountName of the user from WMI, so you may have to tweak it if you use another format for the user. Also, if the user doesn’t already exist in the database, we skip the mapping – you could easily issue a CreateUser command to have the user created and then mapped if you liked.
You can download this script from here.