![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Show InputBox
|
||
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 :: |