Friday, 19 September 2014

Powershell Interaction Class for textbox


The Interaction module contains procedures used to interact with objects, applications, and systems.


[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
$computer = [Microsoft.VisualBasic.Interaction]::InputBox("Enter a computer name", "Computer", "$env:computername")

write-output $computer


No comments:

Post a Comment