<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" 
  xmlns:content="http://purl.org/rss/1.0/modules/content/" 
  xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:atom="http://www.w3.org/2005/Atom" 
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
  xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>wmic on gal.vin</title>
    <link>https://gal.vin/tags/wmic/</link>
    <description>Recent content in wmic on gal.vin</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>&amp;copy;{year}, All Rights Reserved</copyright>
    <lastBuildDate>Wed, 04 Jun 2025 11:39:52 +0100</lastBuildDate>
    <sy:updatePeriod>daily</sy:updatePeriod>
    
        <atom:link href="https://gal.vin/tags/wmic/index.xml" rel="self" type="application/rss+xml" />
    

      
      <item>
        <title>A Powershell Replacement for wmic</title>
        <link>https://gal.vin/posts/2025/powershell-replacement-wmic/</link>
        <pubDate>Wed, 04 Jun 2025 11:39:52 +0100</pubDate>
        
        <atom:modified>Wed, 04 Jun 2025 11:39:52 +0100</atom:modified>
        <guid>https://gal.vin/posts/2025/powershell-replacement-wmic/</guid>
        <description>If you&amp;rsquo;ve tried to use the wmic command in Windows 11 recently you&amp;rsquo;ll probably receive this error message:
&amp;ldquo;wmic: The term &amp;lsquo;wmic&amp;rsquo; is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&amp;rdquo;
The wmic command is no longer part of Windows 11. I used to use wmic a lot to get model and manufacture information, primarily for drivers.</description>
        <content:encoded>&lt;p&gt;If you&amp;rsquo;ve tried to use the wmic command in Windows 11 recently you&amp;rsquo;ll probably receive this error message:&lt;/p&gt;
&lt;p&gt;&amp;ldquo;wmic: The term &amp;lsquo;wmic&amp;rsquo; is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The wmic command is no longer part of Windows 11. I used to use wmic a lot to get model and manufacture information, primarily for drivers. Luckily this command has a PowerShell replacement.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span class=&#34;nb&#34;&gt;Get-WmiObject&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-Class&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Win32_Bios&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;or&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span class=&#34;nb&#34;&gt;Get-CimInstance&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-ClassName&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Win32_ComputerSystem&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Both of the above can be used to obtain manufacturer and model information for a system.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
-Mike&lt;/p&gt;
</content:encoded>
        
        
        
        
        
          
            
              <category>Windows 11</category>
            
          
            
              <category>wmic</category>
            
          
            
              <category>PowerShell</category>
            
          
        
        
        
      </item>
      

    
  </channel>
</rss>