diff --git a/LazyWinAdmin/LazyWinAdmin.ps1 b/LazyWinAdmin/LazyWinAdmin.ps1
index 5615b67..f8389b9 100644
--- a/LazyWinAdmin/LazyWinAdmin.ps1
+++ b/LazyWinAdmin/LazyWinAdmin.ps1
@@ -40,7 +40,7 @@ function Main {
#--------------------------------------------
# Declare Global Variables and Functions here
#--------------------------------------------
-
+
#region Get-ComputerTxtBox
function Get-ComputerTxtBox
{ $global:ComputerName = $textbox_computername.Text}
@@ -5607,6 +5607,11 @@ function Call-MainForm_pff
$buttonShares = New-Object 'System.Windows.Forms.Button'
$buttonEventVwr = New-Object 'System.Windows.Forms.Button'
$button_GPupdate = New-Object 'System.Windows.Forms.Button'
+
+
+ $button_RemoteUninstall = New-Object 'System.Windows.Forms.Button'
+
+
$button_Applications = New-Object 'System.Windows.Forms.Button'
$button_ping = New-Object 'System.Windows.Forms.Button'
$button_remot = New-Object 'System.Windows.Forms.Button'
@@ -7044,6 +7049,90 @@ function Call-MainForm_pff
}
else {Show-MsgBox -BoxType "OKOnly" -Title "$ComputerName - Group Policy Update" -Prompt "Gpupdate does not seem to work! Are you in a Domain ?" -Icon "Exclamation"}
}
+
+
+
+ $button_RemoteUninstall_Click={
+ $program_to_uninstall = ""
+ #region Remote Uninstall GUI
+ $current_dir = Split-Path $script:MyInvocation.MyCommand.Path
+ $PROGRAM_OUTPUT = $current_dir + "\programs.txt"
+ Get-WmiObject Win32_Product -ComputerName $ComputerName | select name | Out-File $PROGRAM_OUTPUT
+ #Get-RemoteProgram -ComputerName $ComputerName | Out-File $PROGRAM_OUTPUT
+ $name_arr = Get-Content $PROGRAM_OUTPUT | Sort-Object
+ # Note: Edited from
+ # https://foxdeploy.com/resources/ise-snippets/xaml-to-gui/ original XAML loader script
+ # Change contents of here string to your XAML code from Visual Studio
+ $RawXAML = @"
+
+
+
+
+
+
+
+"@
+
+ [void][System.Reflection.Assembly]::LoadWithPartialName('PresentationFramework')
+ [xml]$XAML = $RawXAML -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^