Skip to content

Instantly share code, notes, and snippets.

@rpc180
Last active April 22, 2025 17:45
Show Gist options
  • Save rpc180/4ea8cd0ee68bc7ec84dfb65c9d6d7d88 to your computer and use it in GitHub Desktop.
Save rpc180/4ea8cd0ee68bc7ec84dfb65c9d6d7d88 to your computer and use it in GitHub Desktop.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
#Basic Computer Installation
choco install `
notepadplusplus `
googlechrome `
adobereader `
foxitreader `
winmerge `
gimp `
-y --log-file=c:\Support\chocolog.txt
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
choco install `
git `
adobereader `
github-desktop `
googlechrome `
notepadplusplus `
7zip `
pgadmin4 `
postman `
winscp `
putty `
wireshark `
vscode `
nmap `
terraform --pre `
nodejs `
graphviz `
azure-cli `
winmerge `
windirstat `
-y --log-file=c:\Support\chocolog.txt
Install-Module -Name Az -AllowClobber -Scope AllUsers
get-windowscapability -name RSAT* -online | add-windowscapability -online
# Running VSCode, Powershell ISE automatic elevation request
# https://stackoverflow.com/questions/28997799/how-to-create-a-run-as-administrator-shortcut-using-powershell
$bytes = [System.IO.File]::ReadAllBytes("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell ISE.lnk")
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
[System.IO.File]::WriteAllBytes("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows PowerShell ISE.lnk", $bytes)
$bytes = [System.IO.File]::ReadAllBytes("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio Code\Visual Studio Code.lnk")
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
[System.IO.File]::WriteAllBytes("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio Code\Visual Studio Code.lnk", $bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment