Link to home
Start Free TrialLog in
Avatar of iTeam HelpDesk
iTeam HelpDesk

asked on

WMIC GET /Value

I am attempting to use WMIC to obtain the value ONLY for a program like:
wmic product "Symantec Endpoint Protection" get identifyingnumber /value

But this command gives me "identifyingnumber=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

How do I get just the value without the "identifyingnumber" in its return.  My goal is to take that value and attach it to another script like so.

msiexec.exe /q/x %Identifyingnumber%
ASKER CERTIFIED SOLUTION
Avatar of Brendan M
Brendan M
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could use a for /f to get what you need.