cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 4

Script powershell for know Mcafee agent Version and Protection Version

I will like know the versión of the agent of AV Mcafee and Endpoint , it's obvious that I do not have connection at ePo console.

I got this script:

$AgentVer = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine",$Computer).OpenSubKey('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\McAfee\AgentVersion').GetValue('AgentVersion')
$ProductVer = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine',$Computer).OpenSubKey('HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\McAfee\SystemCore').GetValue('') 



      " $AgentVer   Agent version: $AgentVer
        $computer   Product version: $ProductVer

But when execute I obtain:

You cannot call a method on a null-valued expression.
At line:2 char:1
+ $AgentVer = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At line:3 char:1
+ $ProductVer = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('Local ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Agent version: 
            10.1.1.1   Product version: 

I don't know how follow, any can help me ?

A greeting and thanks

 

________________________________________________________________________________________________________________

AES Success

3 Replies
cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: Script powershell for know Mcafee agent Version and Protection Version

I am going to move this over to open source forum, as we don't deal with any custom scripts.  

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Re: Script powershell for know Mcafee agent Version and Protection Version

I also use this antivirus and it is very good. I suppose that I am too nervous about my safety, but I even I recently thought about the fact that it's time for me to think about my house, which I did not protect from thieves and other troubles. I decided that it was time to change this, I read on the Internet that the best security system is Ajax so far, and if you are interested in reading more about it, click here. Ajax keeps in constant communication with the cloud server and reports on its work and threats to the owner's smartphone in real time.

Re: Script powershell for know Mcafee agent Version and Protection Version

I used to think that in order to buy or sell skins in various Steam games, I need some kind of script, mod or add-on. It's good that I decided to google and clarify this information, so I found https://skins.cash/. I haven't looked at many similar sites, but this one I liked the most for its interface.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community