From 16b74549a2b80a1314612d7a11b4d0b12531a3fd Mon Sep 17 00:00:00 2001 From: silversword411 Date: Mon, 19 Apr 2021 11:45:55 +0000 Subject: [PATCH 1/3] adding agent remove/add to docs --- docs/docs/troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 78a97c3084..e62760709c 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -51,6 +51,15 @@ This will print out a ton of info. You should be able to see the error from the Please then copy/paste the logs and post them either in our [Discord support chat](https://discord.gg/upGTkWp), or create a [github issue](https://github.com/wh1te909/tacticalrmm/issues). +##### Alternate - Agent not connecting to server + +Uninstall client +``` +"C:\Program Files\TacticalAgent\unins000.exe" /VERYSILENT +``` + +Then reinstall agent +
#### All other errors From 36a902a44e92e226b0e5b0d097704b7629eaadb1 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Mon, 19 Apr 2021 17:11:53 -0400 Subject: [PATCH 2/3] script rename and tweaks --- api/tacticalrmm/scripts/community_scripts.json | 6 +++--- ..._Installed_App.ps1 => Win_TRMM_Rename_Installed_App.ps1} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename scripts/{Win_Rename_Installed_App.ps1 => Win_TRMM_Rename_Installed_App.ps1} (100%) diff --git a/api/tacticalrmm/scripts/community_scripts.json b/api/tacticalrmm/scripts/community_scripts.json index 9a644cb275..2ee1aabc46 100644 --- a/api/tacticalrmm/scripts/community_scripts.json +++ b/api/tacticalrmm/scripts/community_scripts.json @@ -82,7 +82,7 @@ }, { "guid": "9d34f482-1f0c-4b2f-b65f-a9cf3c13ef5f", - "filename": "Win_Rename_Installed_App.ps1", + "filename": "Win_TRMM_Rename_Installed_App.ps1", "submittedBy": "https://github.com/bradhawkins85", "name": "TacticalRMM Agent Rename", "description": "Updates the DisplayName registry entry for the Tactical RMM windows agent to your desired name. This script takes 1 required argument: the name you wish to set.", @@ -484,8 +484,8 @@ "guid": "83f6c6ea-6120-4fd3-bec8-d3abc505dcdf", "filename": "Win_TRMM_Start_Menu_Delete_Shortcut.ps1", "submittedBy": "https://github.com/silversword411", - "name": "TRMM Delete Start Menu Shortcut for App", - "description": "Tactical RMM delete its application shortcut that's installed in the start menu", + "name": "TacticalRMM Delete Start Menu Shortcut for App", + "description": "Delete its application shortcut that's installed in the start menu by default", "shell": "powershell", "category": "TRMM (Win):TacticalRMM Related", "default_timeout": "10" diff --git a/scripts/Win_Rename_Installed_App.ps1 b/scripts/Win_TRMM_Rename_Installed_App.ps1 similarity index 100% rename from scripts/Win_Rename_Installed_App.ps1 rename to scripts/Win_TRMM_Rename_Installed_App.ps1 From e58881c2bddb2ba0eb238077dd4713b3305281db Mon Sep 17 00:00:00 2001 From: silversword411 Date: Mon, 19 Apr 2021 18:32:36 -0400 Subject: [PATCH 3/3] script library Set Ethernet to use DHCP --- api/tacticalrmm/scripts/community_scripts.json | 10 ++++++++++ scripts/Win_Network_DHCP_Set.bat | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 scripts/Win_Network_DHCP_Set.bat diff --git a/api/tacticalrmm/scripts/community_scripts.json b/api/tacticalrmm/scripts/community_scripts.json index 2ee1aabc46..33d6045557 100644 --- a/api/tacticalrmm/scripts/community_scripts.json +++ b/api/tacticalrmm/scripts/community_scripts.json @@ -470,6 +470,16 @@ "category": "TRMM (Win):Network", "default_timeout": "90" }, + { + "guid": "745bb7cd-b71a-4f2e-b6f2-c579b1828162", + "filename": "Win_Network_DHCP_Set.bat", + "submittedBy": "https://github.com/silversword411", + "name": "Network - Set Primary NIC to DHCP", + "description": "Enable DHCP on primary adapter", + "shell": "cmd", + "category": "TRMM (Win):Network", + "default_timeout": "90" + }, { "guid": "6ce5682a-49db-4c0b-9417-609cf905ac43", "filename": "Win_Win10_Change_Key_and_Activate.ps1", diff --git a/scripts/Win_Network_DHCP_Set.bat b/scripts/Win_Network_DHCP_Set.bat new file mode 100644 index 0000000000..a53fcaef09 --- /dev/null +++ b/scripts/Win_Network_DHCP_Set.bat @@ -0,0 +1,13 @@ +@echo off +for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j + +if "%version%" == "6.1" ( + rem Windows 7 + netsh interface ip set address "Local Area Connection" dhcp + netsh interface ip set dns "Local Area Connection" dhcp +) +if "%version%" == "10.0" ( + rem Windows 10 + netsh interface ip set address Ethernet dhcp + netsh interface ip set dns Ethernet dhcp +) \ No newline at end of file