Run Admin.ps1
.
#Powershell
./Admin.ps1
#Out:
Administrative Permissions to <$env:USERNAME>: Successful.
2. Left-click UAC.bat
to enable secure desktop UAC.
Option 2:
Enter the password for Administrator: xxxxx
Value ConsentPromptBehaviorAdmin exists, overwrite(Yes/No)? Yes
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
Searches in the registry, use the following CMD command:
:: CMD Registry Regex
reg query HKEY_CLASSES_ROOT /f "<regex_search>" /s /e
Remove TrustedInstaller FullControl on needed Registries, grant it to Administrator manually in Registry Editor
or
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.
Run Bash.reg
Git-Gui.reg
gitk.reg
Run CMD.reg
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).
Enable User/System Environment Variables & PATHs at Startup
To be able to use the previously enabled .reg files you will need to do the following:
- 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
- Copy contents according to your environments and directories:
- Add the following command at the end of
$HOME$~/.profile
:
# ~./profile.
#'<.sh>
source ~/.bashrc.
- 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.
- After rebooting check your PATHs & Directories.
#Bash
printenv && echo $PATH
#Directories & PATHs related to executables.
|
© Copyright 2024 EstebanMqz - Registries (Context Menus & Commands). |