When running the following wmic query in command line
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
it will return the current Antivirus on my windows system
displayName=Kaspersky Endpoint Security 10 for Windows
I'm looking to set the text after "displayName=" to a variable.
I have tried with for /f, findstr etc with no joy. Im alos having issue with the the additonal blank lines in the output.
Any help would be much appreciated