update uninstall params

This commit is contained in:
wh1te909
2021-12-20 00:48:55 +00:00
parent 1932d8fad9
commit 859dc170e7
4 changed files with 5 additions and 5 deletions

View File

@@ -116,7 +116,7 @@ if not defined Name (
powershell Add-MpPreference -ExclusionPath C:\Windows\Temp\TRMM\*
cd c:\temp\trmm
powershell Invoke-WebRequest "%DeploymentURL%" -Outfile tactical.exe
REM"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS
REM"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT
tactical.exe
powershell Remove-MpPreference -ExclusionPath C:\TEMP\TRMM
rem exit /b 1
@@ -133,5 +133,5 @@ There is also a full powershell version [here](https://wh1te909.github.io/tactic
You can always use this to silently uninstall agent on workstations
```cmd
"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS
"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT
```

View File

@@ -9,6 +9,6 @@ powershell Add-MpPreference -ExclusionPath "C:\Program Files\Mesh Agent\*"
powershell Add-MpPreference -ExclusionPath C:\Windows\Temp\TRMM\*
cd c:\temp\trmm
powershell Invoke-WebRequest "deployment url" -Outfile tactical.exe
"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS
"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT
start tactical.exe
powershell Remove-MpPreference -ExclusionPath C:\TEMP\TRMM

View File

@@ -65,7 +65,7 @@ if ($install -eq $NULL) {
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
write-host ('Tactical RMM Is Already Installed')
& 'C:\Program Files\TacticalAgent\unins000.exe' /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS
& 'C:\Program Files\TacticalAgent\unins000.exe' /VERYSILENT
Start-Sleep -s 20
}
Invoke-Expression ((new-object System.Net.WebClient).DownloadString($rmmURI))

View File

@@ -9,7 +9,7 @@ else {
$ChkReg = Test-Path 'HKLM:\SOFTWARE\TacticalRMM\'
If ($ChkReg -eq $True) {
$regrmm = Get-ItemProperty -Path HKLM:\SOFTWARE\TacticalRMM\
& 'C:\Program Files\TacticalAgent\unins000.exe' /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS
& 'C:\Program Files\TacticalAgent\unins000.exe' /VERYSILENT
start-sleep -s 20
}
dsregcmd.exe /debug /leave