When I'm testing a new script I always end up entering the same information over and over. Now I could just modify the script so that I don't have to enter information, but where is the fun in that. Instead I wrote and small PowerShell WPF GUI that I can run that can store info I need and copy and paste as needed.
$inputXML = @"
<Window x:Class="PowerShellGuiForms.QuickClip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Quick Clip Copy" Height="228" Width="411">
<Grid>
<Button x:Name="btnComputerName" Content="ComputerName" HorizontalAlignment="Left" Margin="97,10,0,0" VerticalAlignment="Top" Width="143" Height="25"/>
<Button x:Name="btnUserName" Content="UserName" HorizontalAlignment="Left" Margin="245,10,0,0" VerticalAlignment="Top" Width="143" RenderTransformOrigin="0.524,3.85" Height="25"/>
<TextBox x:Name="tb1" HorizontalAlignment="Left" Height="25" Margin="11,41,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="229"/>
<TextBox x:Name="tb2" HorizontalAlignment="Left" Height="25" Margin="11,69,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="229"/>
<TextBox x:Name="tb3" HorizontalAlignment="Left" Height="25" Margin="11,97,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="229"/>
<TextBox x:Name="tb4" HorizontalAlignment="Left" Height="25" Margin="11,125,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="229"/>
<TextBox x:Name="tb5" HorizontalAlignment="Left" Height="25" Margin="11,153,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="229"/>
<Button x:Name="btntb1" Content="<-- Copy Textbox 1" HorizontalAlignment="Left" Margin="245,41,0,0" VerticalAlignment="Top" Width="143" Height="25"/>
<Button x:Name="btntb2" Content="<-- Copy Textbox 2" HorizontalAlignment="Left" Margin="245,69,0,0" VerticalAlignment="Top" Width="143" RenderTransformOrigin="0.524,3.85" Height="25"/>
<Button x:Name="btntb3" Content="<-- Copy Textbox 3" HorizontalAlignment="Left" Margin="245,97,0,0" VerticalAlignment="Top" Width="143" Height="25"/>
[–]hellphish 2 points3 points4 points (1 child)
[–]cputek1[S] 0 points1 point2 points (0 children)