Wmic no instances available

I desire to find what version of Outlook is running on specific workstations. If I manually run

wmic /node:"hostname" product wright here "Name choose "%Office Outlook%"" get Namein a command line, it works. But if I run it from a batch file, it returns "No instance(s) available". I"ve also stripped every little thing else out of the batch file, so only this line is left - and also I still obtain the exact same outcome. Am I absent something?


In a batch manuscript file:

wmic /node:"hostname" product wright here "Name prefer "%%Office Outlook%%"" acquire NameFor proof, try next in your batch file:

echo ONwmic /node:"hostname" product wright here "Name prefer "%%Office Outlook%%"" obtain NamepauseYou must watch following ECHOed command also, the exact same as it would be typed from command prompt:

wmic /node:"hostname" product wright here "Name choose "%Office Outlook%"" get Name:::::::::::::::::::::::::::::::: some wmic output right here ::::::::::::::::::::::::::::::::Press any key to proceed . . .

You watching: Wmic no instances available

For explanation, review Syntaxes : Escape Characters, Delimiters and Quotes

Escaping Percents

The % character has actually a one-of-a-kind meaning for command also line parameters and also FOR parameters. To treat a percent in a batch script file as a regular character, double it: %%

Read How does the Windows Command also Interpreter (CMD.EXE) parse scripts? (entire thread) also.

edited May 23 "17 at 12:06

111 silver badge
answered Sep 27 "16 at 22:55

22.1k44 gold badges3535 silver badges5858 bronze badges
Add a comment |

Your Answer

Thanks for contributing a response to Stack Overflow!

Please be certain to answer the question. Provide details and share your research!

But avoid

Asking for assist, clarification, or responding to other answers.Making statements based on opinion; earlier them up through recommendations or individual experience.

See more: What Should I Do If My Ipod Is Disabled For 23 Million Minutes ? Fix It Here!

To learn even more, see our tips on composing great answers.

See more: Download Senuti For Window S 10, Top 5 Alternatives To Senuti On Windows 10

Draft saved
Draft discarded

Sign up or log in

Sign up utilizing Google
Sign up making use of Facebook
Sign up using Email and Password

Blog post as a guest

Email Required, but never shown

Post as a guest


Required, yet never before shown

Blog post Your Answer Discard

By clicking “Blog post Your Answer”, you agree to our regards to organization, privacy policy and also cookie policy

Not the answer you're looking for? Browse various other concerns tagged wmic or ask your very own question.

The Overflow Blog
Featured on Meta
How does the Windows Command Interpreter (CMD.EXE) parse scripts?
WMIC Command also Not Working in For Loop of Batch File
Calling a WMIC command also inside FOR from a batch file hangs the mechanism for indefinite time
How to run wmic command in a batch file
Get product name from WMIC for a variable in batch
Creating a batch file with WMIC commands that prompts for information input
Batch - WMIC Command output multiple lines add string (Computer Name)
Using dual criteria through wmic and trying to produce a batch file var
wmic uninstall using batch file
Hot Netoccupational Questions even more warm questions

Inquiry feed
Subscribe to RSS
Concern feed To subscribe to this RSS feed, copy and also paste this URL into your RSS reader.


Stack Overflow
Company kind of
Stack Exadjust Network-related
site style / logo © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.3.30.38940

Stack Overcirculation functions best via JavaScript allowed

Your privacy

By clicking “Accept all cookies”, you agree Stack Exadjust can store cookies on your gadget and also disclose information in accordance with our Cookie Policy.