<?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>Fri, 03 Feb 2012 08:09:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nicholas</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-660</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Fri, 05 Aug 2011 17:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-660</guid>
		<description>Great stuff here.  Now to put all the output into a SQL database and this will be a very nice piece for data center inventory.</description>
		<content:encoded><![CDATA[<p>Great stuff here.  Now to put all the output into a SQL database and this will be a very nice piece for data center inventory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-658</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Fri, 29 Jul 2011 18:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-658</guid>
		<description>Our computers are all in a workgroup.  The admin password is different on every machine.  How do I get access to do a list printer port and/or create new ones?  

We are migrating our printers to a new subnet and I want to pre-create the ports.
Thanks</description>
		<content:encoded><![CDATA[<p>Our computers are all in a workgroup.  The admin password is different on every machine.  How do I get access to do a list printer port and/or create new ones?  </p>
<p>We are migrating our printers to a new subnet and I want to pre-create the ports.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paras</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-629</link>
		<dc:creator>Paras</dc:creator>
		<pubDate>Mon, 23 May 2011 14:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-629</guid>
		<description>If i get necessary information on my Powershell prompt how can i store those information in my database? Please let me know urgently.</description>
		<content:encoded><![CDATA[<p>If i get necessary information on my Powershell prompt how can i store those information in my database? Please let me know urgently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitesh</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-610</link>
		<dc:creator>Mitesh</dc:creator>
		<pubDate>Mon, 02 May 2011 06:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-610</guid>
		<description>This is an awesome article, thanks for publishing it!</description>
		<content:encoded><![CDATA[<p>This is an awesome article, thanks for publishing it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: susan</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-590</link>
		<dc:creator>susan</dc:creator>
		<pubDate>Mon, 21 Mar 2011 19:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-590</guid>
		<description>if I name this file name.ps1

#sets the computer to local
$strComputer =”.”

#Creates a variable called $colItems which contains the WMI Object
$colItems = Get-WmiObject Win32_ComputerSystem -Namespace “root\CIMV2? `
-ComputerName $strComputer

#Use a foreach loop to iterate the $colItems (collection).
#Store the properties information in the $objItem Variable.
foreach($objItem in $colItems) {
#Use the Write-Host cmdlet to output required property information
Write-Host “Computer Manufacturer: ” $objItem.Manufacturer
Write-Host “Computer Model: ” $objItem.Model
Write-Host “Total Memory: ” $objItem.TotalPhysicalMemory “bytes”
}

error
The string starting:
At c:\Myscripts\name.ps1:18 char:64 +Write-host &quot;Total Memory:&quot; $objItem.TotalPhysical Memory &quot;bytes &lt;&lt;&lt;&lt; &quot; is missing the terminator: &quot;.  at c:\MyScripts\name.ps1:20 char:1 +  &lt;&lt;&lt;&lt;
+ categoryInfo     :ParserError:  [] ParseException       +FullQualifierdDerrrorld :Terminatior ExpectedAt End of String</description>
		<content:encoded><![CDATA[<p>if I name this file name.ps1</p>
<p>#sets the computer to local<br />
$strComputer =”.”</p>
<p>#Creates a variable called $colItems which contains the WMI Object<br />
$colItems = Get-WmiObject Win32_ComputerSystem -Namespace “root\CIMV2? `<br />
-ComputerName $strComputer</p>
<p>#Use a foreach loop to iterate the $colItems (collection).<br />
#Store the properties information in the $objItem Variable.<br />
foreach($objItem in $colItems) {<br />
#Use the Write-Host cmdlet to output required property information<br />
Write-Host “Computer Manufacturer: ” $objItem.Manufacturer<br />
Write-Host “Computer Model: ” $objItem.Model<br />
Write-Host “Total Memory: ” $objItem.TotalPhysicalMemory “bytes”<br />
}</p>
<p>error<br />
The string starting:<br />
At c:\Myscripts\name.ps1:18 char:64 +Write-host &#8220;Total Memory:&#8221; $objItem.TotalPhysical Memory &#8220;bytes &lt;&lt;&lt;&lt; &quot; is missing the terminator: &quot;.  at c:\MyScripts\name.ps1:20 char:1 +  &lt;&lt;&lt;&lt;<br />
+ categoryInfo     <img src='http://www.powershellpro.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> arserError:  [] ParseException       +FullQualifierdDerrrorld :Terminatior ExpectedAt End of String</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yizhak</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/comment-page-1/#comment-539</link>
		<dc:creator>yizhak</dc:creator>
		<pubDate>Mon, 22 Nov 2010 13:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/#comment-539</guid>
		<description>thanks for this great tutorial helped me alot
can i export the entire results to csv file?
thanks</description>
		<content:encoded><![CDATA[<p>thanks for this great tutorial helped me alot<br />
can i export the entire results to csv file?<br />
thanks</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

