/Context_Menu-Registries

Full Permissions to Admin with 𝗨𝗔𝗖 including: 𝘉𝘢𝘴𝘩 𝘎𝘜𝘐, 𝘨𝘪𝘵𝘬, 𝘗𝘚, 𝘊𝘔𝘋, 𝘝𝘚𝘊𝘰𝘥𝘦, 𝘗𝘺𝘊𝘩𝘢𝘳𝘮, 𝘈𝘯𝘢𝘤𝘰𝘯𝘥𝘢, 𝘦𝘵𝘤. 𝐘𝐎𝐔𝐑 Paths & Envs→ ".\𝘣𝘢𝘴𝘩𝘳𝘤" & ".\𝘱𝘳𝘰𝘧𝘪𝘭𝘦"

Primary LanguageShellOtherNOASSERTION

Context Menu Registries 📂

HTML

Enable User/System Environment Variables to have access in cd ∀ 📂

1. UAC (User Account Control)

2. 📂 Background Commands

3. 📂 Enable User/System Environment Variables & PATHs at Startup

Result:

Profile Bashrc


1. User Account Control (UAC)


1.1 Grant $Env:Username Admin. permissions

Run Admin.ps1.

#Powershell 
./Admin.ps1

#Out: 
Administrative Permissions to <$env:USERNAME>: Successful.

1.2 Left-click UAC.bat to enable secure desktop UAC.

Recommended:

Secure dimmed desktop

UAC options:
  • 0: No prompt.
  • 1: Windows settings changes .
  • 2: Secure dimmed desktop.
  • 3: Sys settings not related to Windows
  • 4: Sys settings not related to Windows (no pw).
Enter the password for Administrator: xxxxx
Value ConsentPromptBehaviorAdmin exists, overwrite(Yes/No)? Yes

rem CMD
SystemPropertiesAdvanced

Click & edit in Advanced System Settings the button:


Once opened, modify PATHs.sh file according to your PATHs & Dirs (e.g):

# Bash
./PATHs.sh

#Out:
# The PATHs of the programs are:
# C:\Program Files\nodejs\node.exe
# C:\Users\Esteban\.nvm\versions\node\v21.6.1\bin\node.exe
# C:\Program Files\Git\mingw64\bin\gitk
# C:\Program Files\Git\cmd\gitk.exe
# C:\Windows\System32\cmd.exe
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
# C:\Users\Esteban\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd
# C:\Program Files\Git\usr\bin\notepad
# C:\Windows\System32\notepad.exe
# C:\Windows\notepad.exe
# C:\Users\Esteban\AppData\Local\Microsoft\WindowsApps\notepad.exe
# C:\Users\Esteban\AppData\Local\Programs\Microsoft VS Code\Code.exe
# C:\Users\Esteban\AppData\Local\Programs\Microsoft VS Code\bin\code
# C:\Users\Esteban\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd

# Icons PATHs are the following:
# C:\\\\Windows\\\\System32\\\\WindowsPowerShell1.0\\\\powershell.exe
# C:\\\\Windows\\\\System32\\\\WindowsPowerShell1.0\\\\powershell_ise.exe
# C:\\\\Program Files\\\\Git\\\\usiash.exe
# C:\\\\Windows\\\\System3ash.exe
# C:\\\\Usersteban\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsAppash.exe
# C:\\\\Program Files\\\\Git
Recommended

WSL


2. Background Context & Commands


Rem CMD
start regedit

Remove TrustedInstaller FullControl on needed Registries, grant it to Administrator manually in  

Download and Double-click .reg files:
Modify regedit - HKEY_CLASSES_ROOT accordingly to .reg keys in all flles.


1. Bash, GUI & gitk

Run Bash.reg Git-Gui.reg gitk.reg


2. Command Prompt  

Run CMD.reg


3. PowerShell & GUI

$PS = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName; Start-Process explorer.exe (Split-Path $PS); $PS = ($PS + '').Replace('\', '\\'); Set-Clipboard -Value $PS; Write-Output $PS

Get Icon's PATHs (double-back-slashed).exe and modify PATHs accordingly.
Run PowerShell.reg


4.     VSCode  

Run VSCode.reg


5.     Pycharm  

Run PyCharm.reg


6.     Notepad  

Run Notepad.reg

7.     Node.js  

Run Node.reg

Note: To activate all .reg files at once, use the activator Regedit.bat (having Admin given full permissions in HKEY_CLASSES_ROOT)


Recommended

CMD-Restore_Point or CMD-xcopy.

Backup SSD

Match your Drives according to external.bat or modify it.

cd F: && label F: D  #Rename F to D 
./external.bat 

Note: Ignore modification alerts after backup.


3. Enable User/System Environment Variables & PATHs at Startup


  1. Open ~/.bashrc & ~/profile and have them modified according to PATHs & directories.

#Bash: Create/Open ~/.profile && ~/.bashrc in $HOME.
cd $HOME && code ~/.profile && code ~/.bashrc

  1. Copy contents according to your environments and directories and source ~/.bashrc to ~/.profile :

PATH.sh.bashrc & .profile


  1. Ensure that Unix-like Environments PATHs are loaded correctly in Startup files:
./Envs_Verif.sh
# Directory /C/Program Files (x86)/NVIDIA Corporation/PhysX/Common exists.
# Directory /C/Windows/system32 exists.
# Directory /C/Program Files/MATLAB/R2021a/bin exists.
# Directory /C/Program Files/dotnet exists.
# Directory /C/Program Files/nodejs exists.
# Directory /C/php-8.2.9 exists.
# Directory /C/ProgramData/ComposerSetup/bin exists.
# Directory /C/Program Files/Git/cmd exists.
# Directory /C/Users/Esteban/AppData/Local/Programs/Python/Python311/Scripts does not exist.
# Directory /C/Users/Esteban/AppData/Local/Programs/Microsoft VS Code/bin exists.
# Directory /C/Windows/System32/WindowsPowerShell/v1.0 exists.
# Directory /C/Windows/System32/Wbem exists.
# Directory /C/Windows/System32/OpenSSH exists.
  1. After rebooting check your PATHs & Directories.
#Bash
printenv && echo $PATH
#Directories & PATHs related to executables.
  1. Startup .bashrc / .profile should enable Registries & Commands in 📁 Backgrounds in any pwd :

Profile Bashrc

Repo Visualization:

Repository

License © Copyright 2024 EstebanMqz - Context Menu Registries (📂 Background Commands).

References:



Business Inquiries:

Resume LinkedIn Business Mail Github GitLab


⚡ Availability: 24/7 on WA (Business Inquiries only)