<?xml version="1.0" encoding="UTF-8"?><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/"
		>
<channel>
	<title>Comments on: PowerShell Scripting with WMI</title>
	<atom:link href="http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powershellpro.com</link>
	<description>Sharing the Experience</description>
	<lastBuildDate>Mon, 06 Sep 2010 23:05:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Seth Flowers</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-513</link>
		<dc:creator>Seth Flowers</dc:creator>
		<pubDate>Fri, 20 Aug 2010 13:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-513</guid>
		<description>Thanks for the great tutorials.</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Hamrick</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-403</link>
		<dc:creator>Jesse Hamrick</dc:creator>
		<pubDate>Mon, 14 Sep 2009 18:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-403</guid>
		<description>Try this...
$arrComputers = get-Content -Path &quot;C:\MyScripts\Servers2.txt&quot;

foreach ($strComputer in $arrComputers) {
$objCollection = Get-WmiObject Win32_BIOS -comp $strComputer
	foreach ($objItem in $objCollection){
		Write-Host &quot;Computer Name:&quot; $strComputer
        write-host &quot;BIOS: &quot; $objItem.Description
        write-host &quot;BIOS: &quot; $objItem.SMBIOSBIOSVersion
        Write-Host
        }
}</description>
		<content:encoded><![CDATA[<p>Try this&#8230;<br />
$arrComputers = get-Content -Path &#8220;C:\MyScripts\Servers2.txt&#8221;</p>
<p>foreach ($strComputer in $arrComputers) {<br />
$objCollection = Get-WmiObject Win32_BIOS -comp $strComputer<br />
	foreach ($objItem in $objCollection){<br />
		Write-Host &#8220;Computer Name:&#8221; $strComputer<br />
        write-host &#8220;BIOS: &#8221; $objItem.Description<br />
        write-host &#8220;BIOS: &#8221; $objItem.SMBIOSBIOSVersion<br />
        Write-Host<br />
        }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John V</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-402</link>
		<dc:creator>John V</dc:creator>
		<pubDate>Mon, 14 Sep 2009 15:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-402</guid>
		<description>I know I am thick as a brick and I am a complete newbie to PowerShell, but I have stripped out every extraneous thing I can think of and still get the same error on every script. The most basic thing I have tried is;

$arrComputers = get-Content -Path “C:\MyScripts\Servers2.txt”

foreach ($strComputer in $arrComputers) {

		Write-Host `Computer Name:` $strComputer

$strComputer = Get-WmiObject Win32_BIOS -Namespace `root\CIMV2``-computername $strComputer

		
        write-host &quot;BIOS: &quot; $objItem.Description
        write-host &quot;BIOS: &quot; $objItem.SMBIOSBIOSVersion
        write-host
}
but when I debug I ALWAYS get an error about 
Invalid parameter 
At :line:10 char:28
+ $strComputer = Get-WmiObject &lt;&lt;&lt;&lt;  Win32_BIOS -Namespace `root\CIMV2``-computername $strComputer

with the &quot;t&quot; of WMIObject highlighted. WHat have I done wrong.</description>
		<content:encoded><![CDATA[<p>I know I am thick as a brick and I am a complete newbie to PowerShell, but I have stripped out every extraneous thing I can think of and still get the same error on every script. The most basic thing I have tried is;</p>
<p>$arrComputers = get-Content -Path “C:\MyScripts\Servers2.txt”</p>
<p>foreach ($strComputer in $arrComputers) {</p>
<p>		Write-Host `Computer Name:` $strComputer</p>
<p>$strComputer = Get-WmiObject Win32_BIOS -Namespace `root\CIMV2&#8220;-computername $strComputer</p>
<p>        write-host &#8220;BIOS: &#8221; $objItem.Description<br />
        write-host &#8220;BIOS: &#8221; $objItem.SMBIOSBIOSVersion<br />
        write-host<br />
}<br />
but when I debug I ALWAYS get an error about<br />
Invalid parameter<br />
At :line:10 char:28<br />
+ $strComputer = Get-WmiObject &lt;&lt;&lt;&lt;  Win32_BIOS -Namespace `root\CIMV2&#8220;-computername $strComputer</p>
<p>with the &#8220;t&#8221; of WMIObject highlighted. WHat have I done wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erlan</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-391</link>
		<dc:creator>Erlan</dc:creator>
		<pubDate>Thu, 06 Aug 2009 09:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-391</guid>
		<description>I am having an issue with Get-WmiObject -computername $machine
 
The Variable $machine is an IP. But it gives the following error message if the IP is not in the hosts file.

Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Is there anyway that it does not use this lookup and it just uses the ip provided?</description>
		<content:encoded><![CDATA[<p>I am having an issue with Get-WmiObject -computername $machine</p>
<p>The Variable $machine is an IP. But it gives the following error message if the IP is not in the hosts file.</p>
<p>Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0&#215;800706BA)</p>
<p>Is there anyway that it does not use this lookup and it just uses the ip provided?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-351</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Tue, 09 Jun 2009 22:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-351</guid>
		<description>Is there a &quot;WMI Administrative Tools&quot; for Server 2008?</description>
		<content:encoded><![CDATA[<p>Is there a &#8220;WMI Administrative Tools&#8221; for Server 2008?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-345</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Thu, 28 May 2009 22:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-345</guid>
		<description>I was getting same as Chad. My editor did not bring some of the close quotes across correctly so I had mismatched quotes. Check the end of the $colitems assignment statments for a proper close quote in your editor. (“root\CIMV2?`). Good stuff!</description>
		<content:encoded><![CDATA[<p>I was getting same as Chad. My editor did not bring some of the close quotes across correctly so I had mismatched quotes. Check the end of the $colitems assignment statments for a proper close quote in your editor. (“root\CIMV2?`). Good stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emiliano Christian</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-341</link>
		<dc:creator>Emiliano Christian</dc:creator>
		<pubDate>Tue, 19 May 2009 15:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-341</guid>
		<description>The MAC address in the Network Information section, is not printing because instead of $objitem it says $ojbitem</description>
		<content:encoded><![CDATA[<p>The MAC address in the Network Information section, is not printing because instead of $objitem it says $ojbitem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-291</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Fri, 06 Mar 2009 21:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-291</guid>
		<description>When I run the script, serverinventory.ps1

i receive the following:

Incomplete string token.
At D:\wmi\serverinventory.ps1:97 char:23
+ Write-Host &quot;Operating S &lt;&lt;&lt;&lt; ystem:&quot; $objItem.Name

i&#039;m also seeing the following error:

Missing expression after unary oper
At D:\wmi\inv2.ps1:118 char:2
+ -C &lt;&lt;&lt;&lt; omputername $strComputer

i&#039;m very new to powershell and wmi, so any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>When I run the script, serverinventory.ps1</p>
<p>i receive the following:</p>
<p>Incomplete string token.<br />
At D:\wmi\serverinventory.ps1:97 char:23<br />
+ Write-Host &#8220;Operating S &lt;&lt;&lt;&lt; ystem:&#8221; $objItem.Name</p>
<p>i&#8217;m also seeing the following error:</p>
<p>Missing expression after unary oper<br />
At D:\wmi\inv2.ps1:118 char:2<br />
+ -C &lt;&lt;&lt;&lt; omputername $strComputer</p>
<p>i&#8217;m very new to powershell and wmi, so any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JoJo</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-222</link>
		<dc:creator>JoJo</dc:creator>
		<pubDate>Fri, 26 Sep 2008 11:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-222</guid>
		<description>Serious Stan is indeed correct. Good catch Stan. Jesse...mega dittos. You should consider compiling these pages and publishing a book.</description>
		<content:encoded><![CDATA[<p>Serious Stan is indeed correct. Good catch Stan. Jesse&#8230;mega dittos. You should consider compiling these pages and publishing a book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serious Stan</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-201</link>
		<dc:creator>Serious Stan</dc:creator>
		<pubDate>Wed, 27 Aug 2008 11:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-201</guid>
		<description>... to follow on from (and correct) my previous comment, it isn&#039;t actually the &quot;C&quot; that&#039;s important. As far as I can tell, the full list is displayed when at least one character in the namespace is capitalised.</description>
		<content:encoded><![CDATA[<p>&#8230; to follow on from (and correct) my previous comment, it isn&#8217;t actually the &#8220;C&#8221; that&#8217;s important. As far as I can tell, the full list is displayed when at least one character in the namespace is capitalised.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
