Skip to content

Full Permissions to Admin with ๐—จ๐—”๐—– including: ๐˜‰๐˜ข๐˜ด๐˜ฉ ๐˜Ž๐˜œ๐˜, ๐˜จ๐˜ช๐˜ต๐˜ฌ, ๐˜—๐˜š, ๐˜Š๐˜”๐˜‹, ๐˜๐˜š๐˜Š๐˜ฐ๐˜ฅ๐˜ฆ, ๐˜—๐˜บ๐˜Š๐˜ฉ๐˜ข๐˜ณ๐˜ฎ, ๐˜ˆ๐˜ฏ๐˜ข๐˜ค๐˜ฐ๐˜ฏ๐˜ฅ๐˜ข, ๐˜ฆ๐˜ต๐˜ค. ๐˜๐Ž๐”๐‘ Paths & Envsโ†’ ".\๐˜ฃ๐˜ข๐˜ด๐˜ฉ๐˜ณ๐˜ค" & ".\๐˜ฑ๐˜ณ๐˜ฐ๐˜ง๐˜ช๐˜ญ๐˜ฆ"

License

Notifications You must be signed in to change notification settings

EstebanMqz/Context_Menu-Registries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Context Menu Registries ๐Ÿ“‚

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 ย  Gmail ย  Github ย  GitLab


โšก Availability: 24/7 on WA (Business Inquiries only)

About

Full Permissions to Admin with ๐—จ๐—”๐—– including: ๐˜‰๐˜ข๐˜ด๐˜ฉ ๐˜Ž๐˜œ๐˜, ๐˜จ๐˜ช๐˜ต๐˜ฌ, ๐˜—๐˜š, ๐˜Š๐˜”๐˜‹, ๐˜๐˜š๐˜Š๐˜ฐ๐˜ฅ๐˜ฆ, ๐˜—๐˜บ๐˜Š๐˜ฉ๐˜ข๐˜ณ๐˜ฎ, ๐˜ˆ๐˜ฏ๐˜ข๐˜ค๐˜ฐ๐˜ฏ๐˜ฅ๐˜ข, ๐˜ฆ๐˜ต๐˜ค. ๐˜๐Ž๐”๐‘ Paths & Envsโ†’ ".\๐˜ฃ๐˜ข๐˜ด๐˜ฉ๐˜ณ๐˜ค" & ".\๐˜ฑ๐˜ณ๐˜ฐ๐˜ง๐˜ช๐˜ญ๐˜ฆ"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published