Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GChuf/RCWM
Right Click Windows Magic is an open-source set of right-click (context) menu tools for admins, power users and other magic beings. Batch&Powershell.
https://github.com/GChuf/RCWM
admin batch powershell rcwm right-click robocopy takeown windows
Last synced: about 1 month ago
JSON representation
Right Click Windows Magic is an open-source set of right-click (context) menu tools for admins, power users and other magic beings. Batch&Powershell.
- Host: GitHub
- URL: https://github.com/GChuf/RCWM
- Owner: GChuf
- License: gpl-3.0
- Created: 2020-08-15T12:56:11.000Z (over 4 years ago)
- Default Branch: magic
- Last Pushed: 2024-05-23T12:23:28.000Z (7 months ago)
- Last Synced: 2024-08-02T13:29:21.124Z (4 months ago)
- Topics: admin, batch, powershell, rcwm, right-click, robocopy, takeown, windows
- Language: PowerShell
- Homepage:
- Size: 58.2 MB
- Stars: 96
- Watchers: 8
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starz - GChuf/RCWM - Right Click Windows Magic is an open-source set of right-click (context) menu tools for admins, power users and other magic beings. Batch&Powershell. (PowerShell)
README
# Right Click Windows Magic
Right Click Windows Magic is a set of right-click (context) menu tools for admins, power users and other magic beings. If you consider yerself a wizard and would like to save yourself some time and headaches, this is the *right* set of context menu tools for you.
This little magic pack includes:
- option to add the old context menu back in Windows 11
- robocopy for copying and moving directories (much faster than regular copy)
- opening CMD or powershell windows into folders or drives
- taking ownership of files, or directories with recursion (takeown && icacls)
- options to boot into Safe Mode
- option to Reboot to Recovery
- opening Control Panel
- running programs with custom priority
- option to always open cmd as admin
- making symbolic/hard links
- opening "God Mode"
- options to uninstall the changes you've made
- options to MoveTo / SendTo folder (from Windows 7)
- signing out from desktop background
- opening GodModeYou can also remove some right-click menu options, so that your menu doesn't become too cluttered:
- Pin to Quick access
- Pin to Start Screen
- Include in Library
- Send To
- Share
- Add to Windows Media Player
- Scan with Windows DefenderOther removals:
- "Version" tab inside explorerTODO (magic takes time):
- takeown for files (.exe and other)
- copying files
- directory juntions for multiple files/folders
- pwsh opened with admin priv
- adding other admin tools to right click in background
- remove "cast to device", check "add to win media player list"
- locking folders with passwords?
- your suggestions# What's new in v2:
- install for individual users now possible
- added .exe file to write directory paths into registry through ps2exe script (no more console flicker)
- fixed UNC paths when copying/moving
- fixed encoding issues in windows XP/7/8 - the culprit was the default cmd.exe font
- moved some batch scripts to powershell
- speed up reading and writing directory paths to be copied/moved (now done in registry, no writing/reading from files anymore)
- other minor speed-ups![Magic examples](img/RCWM.gif)
# Installation
To install the tools: download the latest zip file under releases ([here](https://github.com/GChuf/RCWM/releases/latest)), unzip it and run the install.cmd script __as administrator__ - after that, you'll only need the two most abused keys: __*Y*__ and __*N*__ (and maybe a few others).
If you don't have the administrator privileges on your Windows OS, some magic might not work properly.# How does it work?
Magic, basically. Right now, the magic happens inside the Windows registry with some help of batch and powershell scripting. Some day, this batch magic might evolve into powershell wizardry (it's already happening), but up until now, there was no need for that to happen everywhere.
The goal was to automate command line tools like robocopy, so that 1) everybody could use it, and 2) it would save some time to those who already know how to use it. While automating the tasks, I've accidentally discovered that I could automate much more than what I thought - and so now, you can select multiple folders to copy/move and paste them all into one folder, just like you can with the regular, slow, lazy windows GUI copy.
# RoboCopy and Move Directory options
RoboCopy/RoboPaste & Move Directory both use robocopy to do the work.
You have two options: you can copy multiple or single directories at a time.__Single__:
The folder (directory path) to be copied (when you right-click "RoboCopy") is written into registry and __overwrites__ any previous folder paths stored there. If you specify a new folder to be copied, the old one (if existing) will be overwritten. It is simpler and faster.__Multiple__:
The list of the folder paths to be copied is __appended__ to registry under *C:\Windows\System32\RCWM\{rc || mv}* keys. Then the script goes through a powershell loop to copy all of them.By default, you can only select up to 15 folders to be copied (the default windows limit for right-click options is 15, you can increase it to 31 or more in the install script - see the *MultipleInvokeMinimum.reg* file for more info). Recursive copying/moving is also never a problem (you can have as many subfolders as you like).
Use this option if you intend to use RoboCopy a lot. YOu can read the rcp.ps1 powershell file to understand how the script works.
RoboCopy (multiple) versus Move Directory (single):
![Single vs Multiple](img/sm.gif)
# Known bugs
- TakeOwn won't work properly when right-clicking on very large amounts of folders (some folders' permissions won't be changed - so you need to do it twice)?
Changing ownership of large amounts of recursive folders works fine though.
- Run with Priority won't show the menu to choose with which priority to run a program - please report if this happens to you
- rmdir and robocopy sometimes need admin privileges (robocopy throws error 5) - if you experience this, takeown or always running cmd as admin will help# Tests
RoboCopy is much faster for copying a large amount of small files.
RmDir is also faster than "standard" delete.Test results on my machine on an SSD disk:
Folder info: 1.73GB / 12 089 files
- rcopy/normal copy: 43s/91s
- rmdir/normal delete: ~ 3s/4.5sResults may vary based on your computer and disk - but wherever there are lots of small files, you should benefit.
# Credits
I used my own bastardized version of Ingo Karstein's [ps2exe](https://github.com/ikarstein/ps2exe
) tool for making .exe files out of powershell scripts.The files for Booting into Safe mode and Running with Priority were heavily influenced by Shawn Brink at [tenforums.com](https://www.tenforums.com/tutorials/1977-windows-10-tutorial-index.html)
The TakeOwn.reg files for Taking Ownership were heavily influenced by Vishal Gupta at [AskVG.com](https://www.askvg.com/) & Shawn Brink.
The Reboot to Recovery option was found somewhere on the internet a while ago. Unfortunately, I cannot remember who the original author is.
I changed and adapted all those files, but their ideas and the initial implementations deserve the credit.
Everything else is my own work, with the help of the Internet.