From a251ae9b9086138491b9222b92cd2738934e6ca1 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Sun, 11 Apr 2021 08:47:36 -0400 Subject: [PATCH] 2 scripts added --- api/tacticalrmm/scripts/community_scripts.json | 18 ++++++++++++++++++ scripts/Win_ADDC_Sync_Start.bat | 2 ++ scripts/Win_FileSystem_Enable_Long_Paths.bat | 1 + 3 files changed, 21 insertions(+) create mode 100644 scripts/Win_ADDC_Sync_Start.bat create mode 100644 scripts/Win_FileSystem_Enable_Long_Paths.bat diff --git a/api/tacticalrmm/scripts/community_scripts.json b/api/tacticalrmm/scripts/community_scripts.json index 064aa7a8..65ce4efb 100644 --- a/api/tacticalrmm/scripts/community_scripts.json +++ b/api/tacticalrmm/scripts/community_scripts.json @@ -215,6 +215,15 @@ "shell": "cmd", "category": "TRMM (Win):Active Directory" }, + { + "guid": "b6b9912f-4274-4162-99cc-9fd47fbcb292", + "filename": "Win_ADDC_Sync_Start.bat", + "submittedBy": "https://github.com/silversword411", + "name": "ADDC - Sync AD", + "description": "Trigger AD Sync on domain controller", + "shell": "cmd", + "category": "TRMM (Win):Active Directory" + }, { "guid": "b720e320-7755-4c89-9992-e1a6c43699ed", "filename": "Win_Defender_Clear_Logs.ps1", @@ -434,5 +443,14 @@ "description": "Azure AD - Check if joined or not", "shell": "powershell", "category": "TRMM (Win):Azure>AD" + }, + { + "guid": "e18c64d0-b783-4b52-b44b-9bb7592b439b", + "filename": "Win_FileSystem_Enable_Long_Paths.bat", + "submittedBy": "https://github.com/silversword411", + "name": "File System - Enable Long Paths", + "description": "Enables NTFS Long paths greater than 260 characters", + "shell": "cmd", + "category": "TRMM (Win):Storage" } ] \ No newline at end of file diff --git a/scripts/Win_ADDC_Sync_Start.bat b/scripts/Win_ADDC_Sync_Start.bat new file mode 100644 index 00000000..77989aa1 --- /dev/null +++ b/scripts/Win_ADDC_Sync_Start.bat @@ -0,0 +1,2 @@ +net start ADSync +exit \ No newline at end of file diff --git a/scripts/Win_FileSystem_Enable_Long_Paths.bat b/scripts/Win_FileSystem_Enable_Long_Paths.bat new file mode 100644 index 00000000..dffe00f3 --- /dev/null +++ b/scripts/Win_FileSystem_Enable_Long_Paths.bat @@ -0,0 +1 @@ +REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /V LongPathsEnabled /T REG_DWORD /D 1 /F \ No newline at end of file