Jump to content

Vespian

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About Vespian

Profile Information

  • OS
    Windows 7 x64

Vespian's Achievements

0

Reputation

  1. Thank you both for your replies they have been very helpful. @Yzowl We only have 1 version which is why wanting to just check for that one. The situation we are in is that we currently use Kaspersky AV but are moving to McAfee. All the PC's should have the McAfee agent on but they will be pointing to the wrong server so this needs to be reinstalled so pointing to the correct one. I'm wanting this batch to check if the correct version of McAfee is installed and if not install but if it is check which server it points to and if the wrong one reinstall itself so will be pointing to the correct server.
  2. Hi, I am hoping someone can help. I am currently writing a batch file that checks for a version of software in the registry then if the right version checks the server entry in the registry. I've managed to get the version of software part working thanks to this topic http://www.msfn.org/board/topic/113643-batch-file-that-check-version-in-registry/ and Wise Owl's advice in it but have become stuck. This is my script so far Set "key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1FDB8EC6-BAF1-42F9-8E09-4D9AB369F1B5}"Reg query %key% /v DisplayVersion|Find "4.8.0.887">Nul&&(Goto ServerCheck)"framepkg.exe" /Install=Agent /Silent:ServerCheckSet "key=HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent"Goto Stop)"framepkg.exe" /Install=Agent /Silent:StopPauseThe output from Set "key=HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent" is below. The part I'm looking to check is the ePOServerList REG_SZ and if CMCSU-EPO-01.cict.local is in the entry and if so go to Stop. Agent EnableVDIMode REG_SZ 0 Installed Path REG_SZ C:\Program Files\McAfee\Common Framework binsphash REG_SZ B7BB45E1B73318C7F725E0A385C1DCC9D215FFE4D9CD3FDBB502DFE3CDD12EDC LoggedOnUser REG_SZ wg_tech (Default) REG_SZ SMBiosUUID REG_SZ 00BC3E8C-6FB7-E111-8025-B05963090386 AgentGUID REG_SZ {AFC66908-0D2D-452D-B08A-650A52F6CFC6} AgentWakeUpPort REG_SZ 8081 IPAddress REG_SZ 192.168.16.99 SubnetAddress REG_SZ 192.168.16.0 SubnetMask REG_SZ 255.255.255.0 MacAddress REG_SZ e8e0b70cc45e ComputerName REG_SZ Y0185APH LastASCTime REG_DWORD 0x55642428 IPHostName REG_SZ Y0185APH.CWN PropsVersion REG_SZ 20150526074336 SequenceNumber REG_DWORD 0x2 ePOServerList REG_SZ CMCSU-EPO-01.cict.local|10.221.195.103|447;MDGH-EPO-AHN3.cict.local|10.221.195.102|447 LastPolicyUpdateTime REG_DWORD 0x55642428 LastPropsVersion REG_SZ 20150526074336 McTrayAllowUpdate REG_SZ 0
×
×
  • Create New...