

InterviewSolution
Saved Bookmarks
1. |
Solve : Batch File and WMIC command? |
Answer» <html><body><p>Hello,<br/><br/>I am new to scripting and was wondering if anyone knows or can assist me in running the WMIC command (/output:<a href="https://interviewquestions.tuteehub.com/tag/c-3540" style="font-weight:bold;" target="_blank" title="Click to know more about C">C</a>:\users\username\softwarelist.txt prduct get name, version, installlocation) within a batch file to get a list of software that has been installed on every single server on the domain. Any assistance would be much appreciated. In advance, I Thank you for your time and trouble.<br/><br/>Respectfully,<br/><br/><br/>Frankiefrom Google...<br/>Quote</p><blockquote>The Windows Management Instrumentation Command-line (WMIC) is a command-line and scripting interface that <a href="https://interviewquestions.tuteehub.com/tag/simplifies-1208806" style="font-weight:bold;" target="_blank" title="Click to know more about SIMPLIFIES">SIMPLIFIES</a> the use of Windows Management Instrumentation (WMI) and systems managed through WMI. WMIC is based on aliases.<br/></blockquote>Therefore MS is your best source of information.<br/><a href="https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx">https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx</a><br/>Quote<blockquote>Without using aliases, you can use the same options with the <a href="https://interviewquestions.tuteehub.com/tag/class-18125" style="font-weight:bold;" target="_blank" title="Click to know more about CLASS">CLASS</a> command. For example, CLASS Win32_Process GET Name, <a href="https://interviewquestions.tuteehub.com/tag/handle-767537" style="font-weight:bold;" target="_blank" title="Click to know more about HANDLE">HANDLE</a>, PageFaults. However, you must determine the name of the class from other <a href="https://interviewquestions.tuteehub.com/tag/sources-251502" style="font-weight:bold;" target="_blank" title="Click to know more about SOURCES">SOURCES</a>. To do the equivalent of the alias Where clause, you must use PATH Win32_Process.Description="explorer.exe".<br/></blockquote>Hope that helps you. <br/></body></html> | |