Sharing a story – adding and removing symantec endpoint protection manager

BatchPatch Forums Home Forums BatchPatch Support Forum Sharing a story – adding and removing symantec endpoint protection manager

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9101
    jagablack
    Participant

    Just wanted to share a use-case here at my company. We check for antivirus using the vbscript:

    strComputer = WScript.Arguments(0)

    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2")
    Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product where (Caption='Symantec Endpoint Protection')")

    For Each objSoftware in colSoftware
    wscript.echo objSoftware.Version
    Next

    The above script is launched from the Execute Local Process/Command submenu:

    cscript /nologo C:toolsSymantecChecker.vbs $computer

    We then can deploy Symantec to the machine by the Deployment menu and selecting their setup.exe.

    We can then uninstall Symantec from the machine using Symantec’s SEPprep64.exe tool (with proper edits to the ini file), also fed to the Deployment menu.

    Anyway, a quick three point punch from checking, adding, and removing Symantec Endpoint Protection remotely using BatchPatch. Thanks again for an awesome product.

    #10897
    doug
    Moderator

    Jeremy – Thanks for sharing! This is a great use of BatchPatch, for sure.

    One note: If you’re interested in ditching your .vbs script, you could hardcode the command directly into BatchPatch to retrieve the version number:

    WMIC PATH Win32_Product WHERE caption='Symantec Endpoint Protection' GET version

    You could input the above command into either of the ‘Create/modify user-defined commands’ sections under ‘Get information,’ or ‘Execute remote process/command’

    -Doug

    #10891
    jagablack
    Participant

    Thanks Doug, I will try that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.