<?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 InputBox</title>
	<atom:link href="http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/</link>
	<description>Tools for IT Success</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:01:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jared</title>
		<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/comment-page-1/#comment-1236</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Mon, 04 May 2009 15:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/#comment-1236</guid>
		<description>Will do thanks!</description>
		<content:encoded><![CDATA[<p>Will do thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffery Hicks</title>
		<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/comment-page-1/#comment-1235</link>
		<dc:creator>Jeffery Hicks</dc:creator>
		<pubDate>Mon, 04 May 2009 14:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/#comment-1235</guid>
		<description>I haven&#039;t found a good way to force a form to get focus.  It would be better if you could post your script and problem in the PowerShell forum at ScriptingAnswers.com. Much easier to work on a problem there versus blog comments.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t found a good way to force a form to get focus.  It would be better if you could post your script and problem in the PowerShell forum at ScriptingAnswers.com. Much easier to work on a problem there versus blog comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/comment-page-1/#comment-1234</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Mon, 04 May 2009 13:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/#comment-1234</guid>
		<description>I am using this function along with other things to pull the BIOS information for remote computers. The only problem I am having is making the InputBox show on top of other windows after being ran. It jumps behind everything else. Is there a way to force the box in front?

This is the script I&#039;m using..still a newb so don&#039;t really know how to clean it up. Thanks for any help and sorry for bringing one back from the past.

Function Show-Inputbox {
 Param([string]$message=$(Throw &quot;You must enter a prompt message&quot;),
       [string]$title=&quot;Input&quot;,
       [string]$default
       )
       
 [reflection.assembly]::loadwithpartialname(&quot;microsoft.visualbasic&quot;) &#124; Out-Null
 [microsoft.visualbasic.interaction]::InputBox($message,$title,$default)



}
$c=Show-Inputbox -message &quot;Enter a computername&quot; `
-title &quot;Computername&quot; -default $env:Computername

if ($c.Trim()) {
  Get-WmiObject win32_computersystem -computer $c
  }



foreach ($strComputer in $arrComputers)
{
    $colItems = get-wmiobject -class &quot;Win32_BIOS&quot; -namespace &quot;root\CIMV2&quot; `
    -computername $c

   foreach ($objItem in $colItems)
   {
     Write-host &quot;Computer Name: &quot; $c
      write-host &quot;BIOS Version: &quot; $objItem.BIOSVersion
      write-host &quot;Build Number: &quot; $objItem.BuildNumber
      write-host &quot;Caption: &quot; $objItem.Caption
      write-host &quot;Code Set: &quot; $objItem.CodeSet
      write-host &quot;Current Language: &quot; $objItem.CurrentLanguage
      write-host &quot;Description: &quot; $objItem.Description
      write-host &quot;Identification Code: &quot; $objItem.IdentificationCode
      write-host &quot;Installable Languages: &quot; $objItem.InstallableLanguages
      write-host &quot;Installation Date: &quot; $objItem.InstallDate
      write-host &quot;Language Edition: &quot; $objItem.LanguageEdition
      write-host &quot;List Of Languages: &quot; $objItem.ListOfLanguages
      write-host &quot;Manufacturer: &quot; $objItem.Manufacturer
      write-host &quot;Name: &quot; $objItem.Name
      write-host &quot;Other Target Operating System: &quot; $objItem.OtherTargetOS
      write-host &quot;Primary BIOS: &quot; $objItem.PrimaryBIOS
      write-host &quot;Release Date: &quot; $objItem.ReleaseDate
      write-host &quot;Serial Number: &quot; $objItem.SerialNumber
      write-host &quot;SMBIOS BIOS Version: &quot; $objItem.SMBIOSBIOSVersion
      write-host &quot;SMBIOS Major Version: &quot; $objItem.SMBIOSMajorVersion
      write-host &quot;SMBIOS Minor Version: &quot; $objItem.SMBIOSMinorVersion
      write-host &quot;SMBIOS Present: &quot; $objItem.SMBIOSPresent
      write-host &quot;Software Element ID: &quot; $objItem.SoftwareElementID
      write-host &quot;Software Element State: &quot; $objItem.SoftwareElementState
      write-host &quot;Status: &quot; $objItem.Status
      write-host &quot;Target Operating System: &quot; $objItem.TargetOperatingSystem
      write-host &quot;Version: &quot; $objItem.Version
      write-host
   }
}</description>
		<content:encoded><![CDATA[<p>I am using this function along with other things to pull the BIOS information for remote computers. The only problem I am having is making the InputBox show on top of other windows after being ran. It jumps behind everything else. Is there a way to force the box in front?</p>
<p>This is the script I&#8217;m using..still a newb so don&#8217;t really know how to clean it up. Thanks for any help and sorry for bringing one back from the past.</p>
<p>Function Show-Inputbox {<br />
 Param([string]$message=$(Throw &#8220;You must enter a prompt message&#8221;),<br />
       [string]$title=&#8221;Input&#8221;,<br />
       [string]$default<br />
       )</p>
<p> [reflection.assembly]::loadwithpartialname(&#8220;microsoft.visualbasic&#8221;) | Out-Null<br />
 [microsoft.visualbasic.interaction]::InputBox($message,$title,$default)</p>
<p>}<br />
$c=Show-Inputbox -message &#8220;Enter a computername&#8221; `<br />
-title &#8220;Computername&#8221; -default $env:Computername</p>
<p>if ($c.Trim()) {<br />
  Get-WmiObject win32_computersystem -computer $c<br />
  }</p>
<p>foreach ($strComputer in $arrComputers)<br />
{<br />
    $colItems = get-wmiobject -class &#8220;Win32_BIOS&#8221; -namespace &#8220;root\CIMV2&#8243; `<br />
    -computername $c</p>
<p>   foreach ($objItem in $colItems)<br />
   {<br />
     Write-host &#8220;Computer Name: &#8221; $c<br />
      write-host &#8220;BIOS Version: &#8221; $objItem.BIOSVersion<br />
      write-host &#8220;Build Number: &#8221; $objItem.BuildNumber<br />
      write-host &#8220;Caption: &#8221; $objItem.Caption<br />
      write-host &#8220;Code Set: &#8221; $objItem.CodeSet<br />
      write-host &#8220;Current Language: &#8221; $objItem.CurrentLanguage<br />
      write-host &#8220;Description: &#8221; $objItem.Description<br />
      write-host &#8220;Identification Code: &#8221; $objItem.IdentificationCode<br />
      write-host &#8220;Installable Languages: &#8221; $objItem.InstallableLanguages<br />
      write-host &#8220;Installation Date: &#8221; $objItem.InstallDate<br />
      write-host &#8220;Language Edition: &#8221; $objItem.LanguageEdition<br />
      write-host &#8220;List Of Languages: &#8221; $objItem.ListOfLanguages<br />
      write-host &#8220;Manufacturer: &#8221; $objItem.Manufacturer<br />
      write-host &#8220;Name: &#8221; $objItem.Name<br />
      write-host &#8220;Other Target Operating System: &#8221; $objItem.OtherTargetOS<br />
      write-host &#8220;Primary BIOS: &#8221; $objItem.PrimaryBIOS<br />
      write-host &#8220;Release Date: &#8221; $objItem.ReleaseDate<br />
      write-host &#8220;Serial Number: &#8221; $objItem.SerialNumber<br />
      write-host &#8220;SMBIOS BIOS Version: &#8221; $objItem.SMBIOSBIOSVersion<br />
      write-host &#8220;SMBIOS Major Version: &#8221; $objItem.SMBIOSMajorVersion<br />
      write-host &#8220;SMBIOS Minor Version: &#8221; $objItem.SMBIOSMinorVersion<br />
      write-host &#8220;SMBIOS Present: &#8221; $objItem.SMBIOSPresent<br />
      write-host &#8220;Software Element ID: &#8221; $objItem.SoftwareElementID<br />
      write-host &#8220;Software Element State: &#8221; $objItem.SoftwareElementState<br />
      write-host &#8220;Status: &#8221; $objItem.Status<br />
      write-host &#8220;Target Operating System: &#8221; $objItem.TargetOperatingSystem<br />
      write-host &#8220;Version: &#8221; $objItem.Version<br />
      write-host<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffery Hicks</title>
		<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/comment-page-1/#comment-551</link>
		<dc:creator>Jeffery Hicks</dc:creator>
		<pubDate>Tue, 19 Aug 2008 13:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/#comment-551</guid>
		<description>I probably should have mentioned that. For those interested, you can download SAPIEN&#039;s Powershell extensions at http://www.primalscript.com/Free_Tools/index.asp.</description>
		<content:encoded><![CDATA[<p>I probably should have mentioned that. For those interested, you can download SAPIEN&#8217;s Powershell extensions at <a href="http://www.primalscript.com/Free_Tools/index.asp" rel="nofollow">http://www.primalscript.com/Free_Tools/index.asp</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/comment-page-1/#comment-549</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Tue, 19 Aug 2008 01:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/08/13/powershell-inputbox/#comment-549</guid>
		<description>FYI, SAPIEN&#039;s PowerShell extensions snap-in has a Read-InputBox cmdlet, too. Same basic effect, and an easy way to see how to write cmdlets since the source code&#039;s simplistic.</description>
		<content:encoded><![CDATA[<p>FYI, SAPIEN&#8217;s PowerShell extensions snap-in has a Read-InputBox cmdlet, too. Same basic effect, and an easy way to see how to write cmdlets since the source code&#8217;s simplistic.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
