Jump to content
Sign in to follow this  
ChrisFromBoston

McAfee Endpoint Encryption / SafeBoot UDF

Recommended Posts

ChrisFromBoston

After years of using AutoIt for small administrative scripts, I've created my first UDF. This UDF will allow you to embed commands in your code to send to your McAfee Endpoint Encryption agent and then process the data that is returned. If anyone out there is using this software, I'd love your feedback. If I've made any formatting or comment faux pas, please let me know ^_^

http://www.technicallychris.com/2009/03/11...ot-autoit-udfs/ (link to source at bottom).

ToDo:

Properly build the XML statements instead of concatenating strings (sorry XML Gods!)

Better processing of data returned from agent - perhaps loading it all into an array.

Special Thanks:

eltorro for writing XMLDomWrapper ;)

Example Script:

This script will force your agent to sync with the server.

#Include <_McAfeeEndpointEncryption.au3>
 
; Silent RUN Errors
AutoItSetOption("RunErrorsFatal", 0) 
 
; Register COM
$regCom = _EEPCRegisterCOM()
if @error Then
    consolewrite("Error at line " & @ScriptLineNumber & " - " & @error)
    exit(11)
EndIf
 
; Connect to Database
$eeConnect = _EEPCConnect("installer", "mypassword", false)
if @error Then
    consolewrite("Error at line " & @ScriptLineNumber & " - " & @error)
    exit(11)
EndIf
 
$ret = _EEPCExecute($eeConnect, "ForceSync")
 
if @error Then
    consolewrite("Error at line " & @ScriptLineNumber & " - " & @error)
    exit(11)
EndIf
 
$ret = _EEPCDisconnect($eeConnect)
if @error Then
    consolewrite("Error at line " & @ScriptLineNumber & " - " & @error)
    exit(11)
EndIf

Share this post


Link to post
Share on other sites
Zinthose

We just started deployment of McAfee Endpoint Encryption to our organization just last week, the coincidence is quite compelling.

I'm not apart of the team managing / deploying it but I'll present this to them so see if they can use it. ^_^


--- TTFN

Share this post


Link to post
Share on other sites
ChrisFromBoston

We just started deployment of McAfee Endpoint Encryption to our organization just last week, the coincidence is quite compelling.

I'm not apart of the team managing / deploying it but I'll present this to them so see if they can use it. ^_^

Awesome ;) We'd been prepping for the deployment for a long time and I've spent almost 9 months now with the product, so if they need anything, they're welcome to ping me through the forums. I have a few posts in my blog that talk about some issues that we'd run into, or that I helped other folks through, and the McAfee community is pretty good, too.

Hope the UDF helps :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×