From c62a5fcef2d89c156b4c37aa253e0a07ff8d8ff3 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Sun, 11 Apr 2021 11:26:59 -0400 Subject: [PATCH] script library empty recycle bin2 --- api/tacticalrmm/scripts/community_scripts.json | 6 +++--- scripts/Win_RecycleBin_Empty.bat | 1 - scripts/Win_RecycleBin_Empty.ps1 | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 scripts/Win_RecycleBin_Empty.bat create mode 100644 scripts/Win_RecycleBin_Empty.ps1 diff --git a/api/tacticalrmm/scripts/community_scripts.json b/api/tacticalrmm/scripts/community_scripts.json index 933df0b7..ae399628 100644 --- a/api/tacticalrmm/scripts/community_scripts.json +++ b/api/tacticalrmm/scripts/community_scripts.json @@ -464,11 +464,11 @@ }, { "guid": "c6014da2-b188-4e1b-b96a-e3440ade3a6a", - "filename": "Win_RecycleBin_Empty.bat", + "filename": "Win_RecycleBin_Empty.ps1", "submittedBy": "https://github.com/silversword411", "name": "File System - Empty Recycle Bin", - "description": "Empty the recycle bin on C", - "shell": "cmd", + "description": "Empty the recycle bin", + "shell": "powershell", "category": "TRMM (Win):Storage" } ] \ No newline at end of file diff --git a/scripts/Win_RecycleBin_Empty.bat b/scripts/Win_RecycleBin_Empty.bat deleted file mode 100644 index ab76c879..00000000 --- a/scripts/Win_RecycleBin_Empty.bat +++ /dev/null @@ -1 +0,0 @@ -del /s /q %systemdrive%\$Recycle.bin \ No newline at end of file diff --git a/scripts/Win_RecycleBin_Empty.ps1 b/scripts/Win_RecycleBin_Empty.ps1 new file mode 100644 index 00000000..4bd0699e --- /dev/null +++ b/scripts/Win_RecycleBin_Empty.ps1 @@ -0,0 +1 @@ +Clear-RecycleBin -Force \ No newline at end of file