Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Show  InputBox  

 Content of Show InputBox.ps1
MD5 Hash: 5AD20A68E17533FAA9A338F514B9130D
Function Show-Inputbox
{
Param([string]$message=$(Throw "You must enter a prompt message"),
[string]$title="Input",
[string]$default
)

[reflection.assembly]::loadwithpartialname("microsoft.visualbasic") | Out-Null
[microsoft.visualbasic.interaction]::InputBox($message,$title,$default)
}

$c=Show-Inputbox -message "Enter a computername" `
-title "Computername" -default $env:Computername

if ($c.Trim()) {
Get-WmiObject win32_computersystem -computer $c
}

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a