Skip to content

User Account Control (UAC) to grant full permissions to Admin to every restricted file: "Bash", "GUI". "gitk", "PS", "CMD", "Code", "PyCharm", "Anaconda", & "NotePad". Paths & Envs → ".\bashrc" & ".\profile"

License

Notifications You must be signed in to change notification settings

EstebanMqz/Registries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background Context Menu Registries

HTML

Enable User/System Environment Variables so that      prompts in cd are displayed in all 📂 Backgrounds:

Profile Bashrc

User Account Control:

1. Grant %USERNAME$ Administrative permissions.

Run Admin.ps1.

#Powershell 
./Admin.ps1

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

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

Recommended: Secure dimmed desktop highest privileges.
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).
Option 2:
Enter the password for Administrator: xxxxx
Value ConsentPromptBehaviorAdmin exists, overwrite(Yes/No)? Yes
3. Add your Environment Variables & PATHs:
SystemPropertiesAdvanced
4. Use PATHs_verification.sh &System_Environments.sh your PATHs & directories.
#PATHs
#PATHs
where node && where gitk && where cmd && where powershell && where pycharm && where notepad && where code
#ICONs PATHs.
(where powershell.exe powershell_ise.exe) | sed 's/\\/\\\\\\\\/g'
(where bash.exe ; where gitk.exe ; where git-gui.exe) | sed 's/\\/\\\\/g'
(where node; where cmd.exe; where notepad.exe; find "$LOCALAPPDATA" -name pycharm64.exe 2>/dev/null) | sed -e 's/\\/\\\\/g' -e 's/\//\\\\/g'
su -c 'apt-get install sudo' && sudo apt-get update && sudo passwd root

if [ "$UID" -eq 0 ]; then
    echo 'You are root.'; 
else 
    echo 'You are not root.';
fi
SystemPropertiesAdvanced 

Recommended:

WSL

Registry RegexCtrl+Shift+F reg_query
Searches in the registry, use the following CMD command:
:: CMD Registry Regex
reg query HKEY_CLASSES_ROOT /f "<regex_search>" /s /e

Background Context & Commands


Description:

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


Recommended:

CMD-Restore_Point or CMD-xcopy with external.bat

Backup HDD: to external SSD:

./external.bat #(Assuming your HDD:C & external-SSD:D. Change .bat if not.)
cd D: & label D: SSD_ext  #Rename D to SSD_ext

Rem CMD
start regedit

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

Note: Ignore modification alerts after backup.

1. Bash, GUI & gitk

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


2. Command Prompt  

Run CMD.reg


3. PowerShell & GUI

Get Icon's PATH (double-back-slashed).exe PATH:

$ps : where "powershell.exe" "powershell_ise.exe" ; echo $ps

The parent folder contains the powershell.exe & power_ise.exe
Run PowerShell.reg
(modify PATHs accordingly).


4.     VSCode  

VSCode.reg


5.     Pycharm  

PyCharm.reg


6.     Notepad  

Notepad.reg



To be able to use the previously enabled .reg files you will need to do the following:

  1. Open your Unix-like environment and input.
    It will open startup files which could be virtual for your OS With a few modifications on ~/.bashrc
    .

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

  1. Copy contents according to your environments and directories:

  1. Add the following command at the end of $HOME$~/.profile:
# ~./profile.
#'<.sh>
source ~/.bashrc.

  1. Ensure that Environments Startup PATHs are loaded correctly by running in bash():

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

#Bash

./PATH.sh 
# Personal Output (according to PATHs): 
# 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/ProgramData/Anaconda3/Scripts exists.
# Directory /C/Users/Esteban/AppData/Local/Programs/Python/Python311/Scripts exists.
# 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 - Registries (Context Menus & Commands).

References:



Business Inquiries:

Resume LinkedIn Business Gmail Github GitLab

⚡⚡Availability: 24/7 on WA (business inquiries only)

(password): "Marquez"

About

User Account Control (UAC) to grant full permissions to Admin to every restricted file: "Bash", "GUI". "gitk", "PS", "CMD", "Code", "PyCharm", "Anaconda", & "NotePad". Paths & Envs → ".\bashrc" & ".\profile"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published