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=XXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXX"
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%
wmic product "Symantec Endpoint Protection" get identifyingnumber /value
But this command gives me "identifyingnumber=XXXXXXX
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
You could use a for /f to get what you need.