Created
December 14, 2024 05:49
-
-
Save cloudmaker97/002dc01f91b94ab1ebb8e955826bb254 to your computer and use it in GitHub Desktop.
My personal powershell scripts for fast installing windows systems.
This file contains hidden or 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
| # Ensure script runs as Administrator | |
| if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
| Write-Host "Please run this script as Administrator." -ForegroundColor Red | |
| exit | |
| } | |
| # List of applications to install | |
| $apps = @( | |
| "Valve.Steam", | |
| "WinSCP.WinSCP", | |
| "Spotify.Spotify", | |
| "Discord.Discord", | |
| "PuTTY.PuTTY", | |
| "Google.Chrome", | |
| "Mozilla.Firefox", | |
| "Adobe.Acrobat.Reader.32-bit", | |
| "Greenshot.Greenshot", | |
| "OBSProject.OBSStudio", | |
| "Notepad++.Notepad++", | |
| "Mozilla.Thunderbird", | |
| "DuongDieuPhap.ImageGlass", | |
| "7zip.7zip", | |
| "yt-dlp.yt-dlp", | |
| "RustDesk.RustDesk", | |
| "VideoLAN.VLC", | |
| "Rufus.Rufus", | |
| ) | |
| # Install each application using winget | |
| foreach ($app in $apps) { | |
| Write-Host "Installing $app..." -ForegroundColor Cyan | |
| try { | |
| winget install -e --id $app -h --accept-source-agreements --accept-package-agreements | |
| } catch { | |
| Write-Host "Failed to install $app" -ForegroundColor Red | |
| } | |
| } | |
| Write-Host "All applications have been processed." -ForegroundColor Green |
This file contains hidden or 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
| # Ensure script runs as Administrator | |
| if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
| Write-Host "Please run this script as Administrator." -ForegroundColor Red | |
| exit | |
| } | |
| # List of applications to install | |
| $apps = @( | |
| "Valve.Steam", | |
| "WinSCP.WinSCP", | |
| "Git.Git", | |
| "SublimeHQ.SublimeText.4", | |
| "SublimeHQ.SublimeMerge", | |
| "Spotify.Spotify", | |
| "Discord.Discord", | |
| "PuTTY.PuTTY", | |
| "Google.Chrome", | |
| "Mozilla.Firefox", | |
| "Adobe.Acrobat.Reader.32-bit", | |
| "JetBrains.Toolbox", | |
| "Greenshot.Greenshot", | |
| "OBSProject.OBSStudio", | |
| "Notepad++.Notepad++", | |
| "Mozilla.Thunderbird", | |
| "DuongDieuPhap.ImageGlass", | |
| "7zip.7zip", | |
| "Docker.DockerDesktop", | |
| "GitHub.GitHubDesktop", | |
| "zyedidia.micro", | |
| "yt-dlp.yt-dlp", | |
| "Microsoft.VisualStudioCode", | |
| "Microsoft.VisualStudio.2022.Community", | |
| "Cyanfish.NAPS2", | |
| "RustDesk.RustDesk", | |
| "CoreyButler.NVMforWindows", | |
| "VideoLAN.VLC", | |
| "Bitwarden.Bitwarden", | |
| "Docker.DockerCompose", | |
| "Rufus.Rufus", | |
| "ESET.EndpointSecurity" | |
| ) | |
| # Install each application using winget | |
| foreach ($app in $apps) { | |
| Write-Host "Installing $app..." -ForegroundColor Cyan | |
| try { | |
| winget install -e --id $app -h --accept-source-agreements --accept-package-agreements | |
| } catch { | |
| Write-Host "Failed to install $app" -ForegroundColor Red | |
| } | |
| } | |
| Write-Host "All applications have been processed." -ForegroundColor Green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment