From bd69f43aa6c30b4fb758778e53c891e7e5f67598 Mon Sep 17 00:00:00 2001 From: capntack Date: Wed, 14 Aug 2024 21:03:28 -0500 Subject: [PATCH 1/2] Added recycle bin command --- cmd-commands.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd-commands.md b/cmd-commands.md index fca518a..7569e39 100644 --- a/cmd-commands.md +++ b/cmd-commands.md @@ -18,6 +18,16 @@ Be cautious if running these commands while remotely connecting to another compu
+### Clear Recycle Bin for All Users + +Run in an elevated Command Prompt: + +``` +rd /s /q c:\$Recycle.Bin +``` + +
+ ### SFC & DISM Commands The following commands will repair/replace corrupted/missing system files, as well as clear up disk space. They must all be ran in an elevated Command Prompt: From 5af1cd184e15703c06ea15c9f8229d19f574eb47 Mon Sep 17 00:00:00 2001 From: capntack Date: Wed, 14 Aug 2024 21:03:34 -0500 Subject: [PATCH 2/2] Formatting --- README.md | 4 ++-- ps-commands.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6642ce..13e112d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,6 @@ This is a collection of Command Prompt and PowerShell commands and scripts I hav There's nothing crazy in here (yet). Just some things I didn't want to commit to memory. These assume you have some know how, but not much. I've made READMEs, comments, and other notes where I felt appropriate. But please read and understand each command/script before using. And of course, feel free to tweak to your own needs. ### Table of Contents: -cmd-commands.md = A document collecting Windows Command Line commands -ps-commands.md = A document collecting Windows PowerShell commands +cmd-commands.md = A document collecting Windows Command Line commands +ps-commands.md = A document collecting Windows PowerShell commands ps-scripts/ = A folder containing various PowerShell scripts \ No newline at end of file diff --git a/ps-commands.md b/ps-commands.md index f3fbb9a..ba4d092 100644 --- a/ps-commands.md +++ b/ps-commands.md @@ -14,6 +14,8 @@ Note: unless otherwise stated, replace any variable such as `$ComputerName` with (Get-CimInstance -Class Win32_ComputerSystemProduct -ComputerName $ComputerName).UUID ``` +
+ ### Remotely Fetch a (Partial) Installed Program List for $ComputerName ```powershell