cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Agent - Clear Custom Properties

Hello,

I running an PowerShell script to update McAfee custom Properties on my devices, to identify specifics configuration devices.

But, if configuration change, I need to clear no more user custom properties.

In product guide, it's explained how to add, but not how to remove. (https://docs.mcafee.com/bundle/agent-5.6.x-product-guide/page/GUID-DE594B53-0CEF-4FDD-8339-745A913FD...)

 

In this example, I want remove custom prop2 :

How can i do ?

10 Replies
aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 11

Re: Agent - Clear Custom Properties

you can enable or disable a property with client task from ePO:

https://docs.mcafee.com/bundle/agent-5.6.x-product-guide/page/GUID-3974B5FF-B1AD-4F5F-9261-54E3B3266...

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: Agent - Clear Custom Properties

Hello @aguervara,

Epo can't evaluate if I need to clean custom property.

I wan start this process on client side.

exemple :
- prop1 = software AAA version

Software AAA is install -> prop1=1.0.

User uninstall software AAA -> prop1 is clear

aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 11

Re: Agent - Clear Custom Properties

to delete a property locally then you need to do it with maconfig, for example if you want to delete custom pro 1 you should need to execute: 

maconfig.exe -custom -prop1 ""

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: Agent - Clear Custom Properties

PS C:\Program Files\McAfee\Agent> .\maconfig.exe -custom -prop1 ""
usage: maconfig -custom
-prop1 value of first custom property
-prop2 value of second custom property
-prop3 value of third custom property
-prop4 value of fourth custom property
-prop5 value of fifth custom property
-prop6 value of sixth custom property
-prop7 value of seventh custom property
-prop8 value of eigth custom property
e.g.
maconfig -custom -prop1 "value string"
maconfig -custom -prop2 "value string"
maconfig -custom -prop3 "value string"
maconfig -custom -prop4 "value string"
maconfig -custom -prop5 "value string"
maconfig -custom -prop6 "value string"
maconfig -custom -prop7 "value string"
maconfig -custom -prop8 "value string"
PS C:\Program Files\McAfee\Agent>

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 11

Re: Agent - Clear Custom Properties

So that didn't clear it?  What if you put a space between the quotes?

.\maconfig.exe -custom -prop1 " "

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?

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 7 of 11

Re: Agent - Clear Custom Properties

Make sure also you are running it as root on Linux or as admin on windows.

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: Agent - Clear Custom Properties

With Space in parameter we have these result :

PS C:\Program Files\McAfee\Agent> .\cmdagent.exe /x
UserProperty1:
UserProperty2:
UserProperty3:
UserProperty8:

 

Isn't clean method. For me, if property isn't set, it's shouldn't be see .

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 9 of 11

Re: Agent - Clear Custom Properties

True - let me see if I can test this.

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?

cdinet
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 10 of 11

Re: Agent - Clear Custom Properties

Running it on a Windows machine with no space in the quotes, I still get a return for that user property field, though it is blank.  That persisted even after a reboot.  That seems to be expected behavior, but not sure why.  I would suggest opening a case to get it in front of dev to explain or fix.

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?

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