Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Show InputBoxContent of Show InputBox.ps1MD5 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 :: |