{"id":104,"date":"2019-05-29T05:00:51","date_gmt":"2019-05-29T05:00:51","guid":{"rendered":"http:\/\/edcint.co.nz\/checkwmiplus\/?page_id=104"},"modified":"2019-05-30T10:14:18","modified_gmt":"2019-05-30T10:14:18","slug":"query","status":"publish","type":"page","link":"https:\/\/edcint.co.nz\/checkwmiplus\/ini-file-documentation\/query\/","title":{"rendered":"query"},"content":{"rendered":"\n<p>The Name field sometimes gets returned in by wmic for most queries without being specified. It seems to be OS version dependent.<br>We recommend always specifying if it in the the WMI Class it to make sure queries are OS version independent<br> Sometimes the Name field contains | &#8211; see info on dataregex field to fix this if needed<\/p>\n\n\n\n<p>For some queries you might add some thing like &#8220;WHERE Name=&#8221;{_arg1}&#8221;<br>When the query is run, {_arg1} is replace with the value of ARG1<br>Available substitutions are {_arg1} {_arg2} {_arg3} {_arg4} this will allow you to select a specific returned row when multiple are returned.<br> <\/p>\n\n\n\n<p>This sample does not use it but you will find others in the predefined ini files that do<br>query=Select  Name,FreePhysicalMemory,TotalVisibleMemorySize,RegisteredUser,ServicePackMajorVersion,NumberOfProcesses,WindowsDirectory,NumberOfUsers,MaxNumberOfProcesses  From Win32_OperatingSystem <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Name field sometimes gets returned in by wmic for most queries without being specified. It seems to be OS version dependent.We recommend always specifying&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":79,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[15,7],"tags":[],"class_list":["post-104","page","type-page","status-publish","hentry","category-documentation","category-ini-file-field-doc"],"_links":{"self":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":1,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/104\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/104\/revisions\/105"}],"up":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/79"}],"wp:attachment":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}