Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
You could use a for /f to get what you need.