Note: This is part of a much larger script.
I have this code which works. But it creates 2 separate dialog's. Dialog #1 asks you for a Computer Name. Dialog #2 asks you for any Switches you want to use.
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
$computer= [Microsoft.VisualBasic.Interaction]::InputBox("Enter a computer name", "Computer", "")
$computer= [Microsoft.VisualBasic.Interaction]::InputBox("Enter any switches needed", "Switches", "")
How do I combine the two InputBox lines into one so I have 1 dialog that has 2 input fields?
Thank you.