Last active
May 17, 2024 22:39
-
-
Save itoleck/b1442f6f04b41a3f8ebffc412a397f36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Autoinstall the PowerShell profiles from my Gist | |
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/itoleck/UltimatePowerShellProfile/main/Microsoft.PowerShell_profile.ps1')) | |
#Font has to be changed in Windows Terminal for each profile to CaskaydiaCove Nerd Font | |
#Oh-my-posh for PowerShell | |
oh-my-posh prompt init powershell --config $env:APPDATA\Local\Programs\oh-my-posh\themes\agnoster.omp.json | Invoke-Expression | |
#Oh-my-posh for cmd | |
oh-my-posh prompt init cmd --config $env:APPDATA\Local\Programs\oh-my-posh\themes\agnoster.omp.json | Invoke-Expression | |
#Create hard link for temp files | |
mklink /D c:\temp z:\temp | |
wsl --install REM *Reboot Req* | |
#Enable RDP | |
Enable-NetFirewallRule -DisplayGroup "Remote Desktop" | |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0 | |
#Set UAC to not dim screen | |
#Look in registry settings | |
#Disable 'Public' Firewall profile on non-mobile machines | |
Set-NetFirewallProfile -Name Public -Enabled False | |
#Install pyenv-win | |
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment