Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Batch File That Checks The Registary

- - - - - Batch File McAfee

  • Please log in to reply
No replies to this topic

#1
Vespian

Vespian
  • Member
  • 1 posts
  • Joined Today, 01:24 AM
  • OS:Windows 7 x64
  • Country: Country Flag

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/...-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
 
:ServerCheck
 
Set "key=HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent"
 
 
Goto Stop)
 
"framepkg.exe" /Install=Agent /Silent
 
:Stop
 
Pause
 
 
The 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    B7BB45E1B73318C7F725E0A385C1DCC9D215FFE4D9CD3FDBB502D
FE3CDD12EDC
    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-E
PO-AHN3.cict.local|10.221.195.102|447
    LastPolicyUpdateTime    REG_DWORD    0x55642428
    LastPropsVersion    REG_SZ    20150526074336
    McTrayAllowUpdate    REG_SZ    0

Edited by Vespian, Today, 02:01 AM.



How to remove advertisement from MSFN




Also tagged with one or more of these keywords: Batch File, McAfee

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users