This content has been marked as final. Show 5 replies
For starters, I'm trying:
regsvr32 "C:\Program Files\McAfee\Endpoint Encryption Manager\CUSTOM\SBAdmCL\SbAdmCom.dll"
The module SBADMCOM.DLL failed to load.
Thanks again for any help!
thats a pretty big problem to start with. :-)
you need to put the com object and its DLL in the same directory as EEM, EEPC, or EEFF. The one you're trying to use is just a copy moved over from the installation media. It has to be in the same directory as the product to work.
Thank you very much SafeBoot/Simon!
DLLRegisterServer in C:\Program Files\McAfee\Endpoint Encryption Manager\SBAdmCom.dll SUCCEEDED!
How in the world would I have figured that out on my own?
I don't suppose you have any VB.NET sample code around do you?
Really appreciate the help, big brownie points if I pull this one off!
sorry, I don't do vb.net, only VBS. There are some scripts on my blog which you might find helpful though.
and of course, don't forget the scripting manual you installed.
my advice if you're writing something simple is don't bother with the XML p****r unless you're very familiar with it already, just throw strings about and use "replace" a lot.
HOW funny! I can't say ..p a r s e r... on the forum! I guess the long established British football team S****horpe United might be nixed as well..
Just in case someone else ends up here looking for this:
Dim sbinterface As New SBADMCOMLib.SbAdmScripting
Dim sbxml As String
Dim sbxmlOut As String
Dim adminUser As String = ""
Dim adminPassword As String = ""
sbxml = ""
sbxml = sbxml & "<SafeBoot>"
sbxml = sbxml & " <SbAdminScripting>"
sbxml = sbxml & " <SbAdminConnection>"
sbxml = sbxml & " <ConnectionType>Persistent.New</ConnectionType>"
sbxml = sbxml & " <AuthType>UserNamePassword</AuthType>"
sbxml = sbxml & " <AdminUser>" & adminUser & "</AdminUser>"
sbxml = sbxml & " <AdminPwd>" & adminPassword & "</AdminPwd>"
sbxml = sbxml & " </SbAdminConnection>"
sbxml = sbxml & " </SbAdminScripting>"
sbxml = sbxml & "</SafeBoot>"
sbxmlOut = sbinterface.execute(sbxml)
Thanks again for your help Simon!