Last active
April 11, 2025 01:58
-
-
Save flcdrg/224d35ac1655f5a52eacf9e26634771d to your computer and use it in GitHub Desktop.
Post install
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
# Things to install/run as the signed-in user, but not elevated | |
# Install Azure Artifacts credential provider | |
iex "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx" | |
# NuGet global package cache - https://learn.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders?WT.mc_id=DOP-MVP-5001655 | |
[Environment]::SetEnvironmentVariable("NUGET_PACKAGES", "d:\packages", [System.EnvironmentVariableTarget]::User) | |
# Create Firefox profile (so we can then set prefs) | |
& 'C:\Program Files\Mozilla Firefox\firefox.exe' --headless --screenshot nul |
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
# PowerShell modules. Run this from elevated PowerShell 7 | |
# Remove preinstalled Pester | |
$module = "C:\Program Files\WindowsPowerShell\Modules\Pester" | |
takeown /F $module /A /R | |
icacls $module /reset | |
icacls $module /grant "*S-1-5-32-544:F" /inheritance:d /T | |
Remove-Item -Path $module -Recurse -Force -Confirm:$false | |
# Modules | |
Install-Module -Scope AllUsers posh-git | |
Install-Module -Scope AllUsers Terminal-Icons | |
Install-module -scope allusers Az | |
Install-Module -Scope AllUsers -Name Pester -Force | |
# Remove AzureRM by uninstalling "Microsoft Azure PowerShell - Month Year" | |
# WSL2 on Windows 11 | |
wsl --install | |
# Uninstall Boxstarter temporary package (update package name as appropriate) | |
choco uninstall tmp3E2.tmp --skip-autouninstaller --skip-powershell |
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
// Firefox profile defaults for me | |
user_pref("browser.urlbar.placeholderName", "DuckDuckGo"); | |
user_pref("browser.urlbar.placeholderName.private", "DuckDuckGo"); | |
user_pref("browser.download.useDownloadDir", false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment