source
stringclasses
1 value
repo
stringclasses
33 values
repo_url
stringclasses
33 values
path
stringlengths
7
179
language
stringclasses
1 value
license
stringclasses
4 values
stars
int64
2.27k
53.4k
ref
stringclasses
4 values
size_bytes
int64
48
259k
text
stringlengths
48
259k
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/AwaitKeyToExit.ps1
PowerShell
mit
45,465
master
256
function AwaitKeyToExit { # Suppress prompt if Silent parameter was passed if (-not $Silent) { Write-Output "" Write-Output "Press any key to exit..." $null = [System.Console]::ReadKey() } Stop-Transcript Exit }
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/ShowCLIDefaultModeAppRemovalOptions.ps1
PowerShell
mit
45,465
master
1,526
# Shows the CLI default mode app removal options. Loops until a valid option is selected. function ShowCLIDefaultModeAppRemovalOptions { PrintHeader 'Default Mode' Write-Host "Please note: The default selection of apps includes Microsoft Teams, Spotify, Sticky Notes and more. Select option 2 to verify and chan...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/PrintHeader.ps1
PowerShell
mit
45,465
master
581
# Prints the header for the script function PrintHeader { param ( $title ) $fullTitle = " Win11Debloat Script - $title" if ($script:Params.ContainsKey("Sysprep")) { $fullTitle = "$fullTitle (Sysprep mode)" } else { $fullTitle = "$fullTitle (User: $(GetUserName))" } ...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/ShowCLILastUsedSettings.ps1
PowerShell
mit
45,465
master
569
# Shows the CLI last used settings from LastUsedSettings.json file, displays pending changes and prompts the user to apply them. function ShowCLILastUsedSettings { PrintHeader 'Custom Mode' try { LoadSettings -filePath $script:SavedSettingsFilePath -expectedVersion "1.0" } catch { Write...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/ShowCLIAppRemoval.ps1
PowerShell
mit
45,465
master
874
# Shows the CLI app removal menu and prompts the user to select which apps to remove. function ShowCLIAppRemoval { PrintHeader "App Removal" Write-Output "> Opening app selection form..." $result = Show-AppSelectionWindow if ($result -eq $true) { Write-Output "You have selected $($script:Sele...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/ShowCLIMenuOptions.ps1
PowerShell
mit
45,465
master
991
# Shows the CLI menu options and prompts the user to select one. Loops until a valid option is selected. function ShowCLIMenuOptions { Do { $ModeSelectionMessage = "Please select an option (1/2)" PrintHeader 'Menu' Write-Host "(1) Default mode: Quickly apply the recommended changes" ...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/ShowCLIDefaultModeOptions.ps1
PowerShell
mit
45,465
master
1,699
# Show CLI default mode options for removing apps, or set selection if RunDefaults or RunDefaultsLite parameter was passed function ShowCLIDefaultModeOptions { if ($RunDefaults) { $RemoveAppsInput = '1' } elseif ($RunDefaultsLite) { $RemoveAppsInput = '0' } else { ...
github
Raphire/Win11Debloat
https://github.com/Raphire/Win11Debloat
Scripts/CLI/PrintPendingChanges.ps1
PowerShell
mit
45,465
master
2,322
# Prints all pending changes that will be made by the script function PrintPendingChanges { Write-Output "Win11Debloat will make the following changes:" if ($script:Params['CreateRestorePoint']) { Write-Output "- $($script:Features['CreateRestorePoint'].Label)" } foreach ($parameterName in $scr...
github
cmderdev/cmder
https://github.com/cmderdev/cmder
scripts/pack.ps1
PowerShell
mit
26,878
master
2,264
<# .Synopsis Pack Cmder .DESCRIPTION Use this script to pack Cmder into release archives You will need to make this script executable by setting your Powershell Execution Policy to Remote signed Then unblock the script for execution with UnblockFile .\pack.ps1 .EXAMPLE .\pack.ps1 Creates defau...
github
cmderdev/cmder
https://github.com/cmderdev/cmder
scripts/build.ps1
PowerShell
mit
26,878
master
6,263
<# .Synopsis Build Cmder .DESCRIPTION Use this script to build your own edition of Cmder This script builds dependencies from current vendor/sources.json file and unpacks them. You will need to make this script executable by setting your Powershell Execution Policy to Remote signed Then unblock th...
github
cmderdev/cmder
https://github.com/cmderdev/cmder
scripts/utils.ps1
PowerShell
mit
26,878
master
11,690
function Ensure-Exists($path) { if (-not (Test-Path $path)) { Write-Error "Missing required $path! Ensure it is installed" exit 1 } return $true > $null } function Ensure-Executable($command) { try { Get-Command $command -ErrorAction Stop > $null } catch { if( ($command -eq ...
github
cmderdev/cmder
https://github.com/cmderdev/cmder
scripts/update.ps1
PowerShell
mit
26,878
master
10,102
<# .Synopsis Update Cmder vendored dependencies .DESCRIPTION This script updates dependencies to the latest version in vendor/sources.json file. You will need to make this script executable by setting your Powershell Execution Policy to Remote signed Then unblock the script for execution with UnblockFi...
github
dotnet/core
https://github.com/dotnet/core
release-notes/RunApiDiff.ps1
PowerShell
mit
21,951
main
45,529
# This script allows running API-diff to generate the dotnet/core report that compares the APIs introduced between two previews, in the format expected for publishing in the dotnet/core repo. # Prerequisites: # - PowerShell 7.0 or later # Usage: # RunApiDiff.ps1 # -PreviousMajorMinor : The 'before' .NET v...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
run.ps1
PowerShell
mit
20,670
main
109,104
[CmdletBinding()] param ( [Parameter(HelpMessage = 'Latest recommended Spotify version for Windows 10+.')] [string]$latest_full = "1.2.88.483.g8aa8628e", [Parameter(HelpMessage = 'Latest supported Spotify version for Windows 7-8.1')] [string]$last_win7_full = "1.2.5.1006.g22820f93", [Parameter(Hel...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/it.ps1
PowerShell
mit
20,670
main
3,449
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════════╗ ║ Benvenuti a SpotX per Windows ║ ╚═══════════════════════════════╝" Incorrect = "Ops, un valore sbagliato," Incorrect2 = "inserisci di nuovo " Download = "Errore nel download" Download2 = "Nuova richies...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/sv.ps1
PowerShell
mit
20,670
main
3,450
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════╗ ║ Välkommen till SpotX för Windows ║ ╚══════════════════════════════════╝" Incorrect = "Hoppsan, ett felaktigt värde," Incorrect2 = "ange igen igenom " Download = "Fel vid nedladdning" Download2 = "Fö...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/pt.ps1
PowerShell
mit
20,670
main
3,560
[PSCustomObject]@{ Welcome = " ╔═════════════════════════════════╗ ║ Bem-vindo ao SpotX para Windows ║ ╚═════════════════════════════════╝" Incorrect = "Ops, um valor incorreto," Incorrect2 = "entre novamente por " Download = "Erro no download" Download2 = "Solicitand...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ta.ps1
PowerShell
mit
20,670
main
6,810
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════╗ ║ Windows SpotXக்கு வரவேற்கிறோம் ║ ╚════════════════════════════════╝" Incorrect = "அச்சச்சோ, தவறான மதிப்பு," Incorrect2 = "மீண்டும் உள்ளிடவும்" Download = "பதிவிறக்குவதில் பிழை" Download2 = "5 வினாடிகள...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/hi.ps1
PowerShell
mit
20,670
main
6,227
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════════╗ ║ SpotX for Windows में आपका स्वागत है ║ ╚════════════════════════════════════╝" Incorrect = "ओह, एक गलत मान," Incorrect2 = "के माध्यम से फिर से दर्ज करें " Download = "डाउनलोड करने में गड़बड़ी" Download...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/sr-Latn.ps1
PowerShell
mit
20,670
main
3,492
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "Ups, netačna vrednost," Incorrect2 = "unesite ponovo za " Download = "Greška preuzimanja" Download2 = "Ponovan zahtev za 5 s...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/es.ps1
PowerShell
mit
20,670
main
3,776
[PSCustomObject]@{ Welcome = " ╔═════════════════════════════════════════════╗ ║ Le damos la bienvenida a SpotX para Windows ║ ╚═════════════════════════════════════════════╝" Incorrect = "Ufff, un valor incorrecto," Incorrect2 = "introduzca nuevamente el valor " Download = "Er...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/hu.ps1
PowerShell
mit
20,670
main
3,632
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════════════════╗ ║ Üdvözöllek a SpotX Windowsos telepítőjében ║ ╚════════════════════════════════════════════╝" Incorrect = "Hoppá, helytelen érték," Incorrect2 = "Próbáld újra " Download = "Letöltési hiba" Downlo...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/fil.ps1
PowerShell
mit
20,670
main
3,903
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════════════════════════╗ ║ Maligayang pagdating sa SpotX para sa Windows ║ ╚═══════════════════════════════════════════════╝" Incorrect = "Oops, maling halaga," Incorrect2 = "subukang muli sa pamamagitan ng " Download = "E...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/sk.ps1
PowerShell
mit
20,670
main
3,531
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "Ups, nesprávna hodnota," Incorrect2 = "zadaj znova cez " Download = "Chyba pri sťahovaní" Download2 = "Skúsim znova o 5 sekú...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/tr.ps1
PowerShell
mit
20,670
main
3,570
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════╗ ║ Windows için SpotX'e Hoşgeldiniz ║ ╚══════════════════════════════════╝" Incorrect = "Eyvah, yanlış bir değer," Incorrect2 = "tekrar girin " Download = "İndirirken hata oluştu" Download2 = "5 saniye...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/be.ps1
PowerShell
mit
20,670
main
4,715
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════════════╗ ║ Сардэчна запрашаем у SpotX для Windows ║ ╚════════════════════════════════════════╝" Incorrect = "Вой, няправільнае значэнне," Incorrect2 = "увядзіце зноў праз " Download = "Памылка спампоўкі" Downl...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/en.ps1
PowerShell
mit
20,670
main
3,198
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "Oops, an incorrect value," Incorrect2 = "enter again through " Download = "Error downloading" Download2 = "Will re-request i...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/vi.ps1
PowerShell
mit
20,670
main
3,703
[PSCustomObject]@{ Welcome = " ╔═════════════════════════════════════╗ ║ Chào mừng đến với SpotX cho Windows ║ ╚═════════════════════════════════════╝" Incorrect = "Ối, sai giá trị rồi," Incorrect2 = "hãy thử lại " Download = "Lỗi khi tải xuống" Download2 = "Tải lại s...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/fa.ps1
PowerShell
mit
20,670
main
4,590
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "اوه، یک مقدار نادرست" Incorrect2 = "دوباره وارد شوید " Download = "خطا در دانلود" Download2 = "در عرض 5 ثانیه مجدد درخواست م...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ru.ps1
PowerShell
mit
20,670
main
4,687
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════════╗ ║ Добро пожаловать в SpotX для Windows ║ ╚══════════════════════════════════════╝" Incorrect = "Ой, некорректное значение," Incorrect2 = "повторите ввод через" Download = "Ошибка загрузки" Download2 ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/uk.ps1
PowerShell
mit
20,670
main
4,782
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════════╗ ║ Ласкаво просимо до SpotX для Windows ║ ╚══════════════════════════════════════╝" Incorrect = "Упс, некоректне значення," Incorrect2 = "введіть знову через " Download = "Помилка завантаження" Download2...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/de.ps1
PowerShell
mit
20,670
main
3,787
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════╗ ║ Willkommen bei SpotX für Windows ║ ╚══════════════════════════════════╝" Incorrect = "Hoppla, ein falscher Wert," Incorrect2 = "bitte geben Sie einen neuen Wert ein in " Download = "Fehler beim Download" ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/id.ps1
PowerShell
mit
20,670
main
3,402
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════════════════╗ ║ Selamat datang di SpotX untuk Windows ║ ╚═══════════════════════════════════════╝" Incorrect = "Oops, nilai salah," Incorrect2 = "masukkan lagi " Download = "Error saat mengunduh" Download2 = "...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ja.ps1
PowerShell
mit
20,670
main
4,015
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════╗ ║ SpotX Windows用にようこそ ║ ╚═══════════════════════════╝" Incorrect = "無効な値です" Incorrect2 = "再入力してください" Download = "ダウンロード時のエラー" Download2 = "5秒後に再試行します..." Download3 = "再びエラー" Download4 = "...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/bn.ps1
PowerShell
mit
20,670
main
7,258
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════════════╗ ║ উইন্ডোজ স্পটএক্স এ আপনাকে স্বাগতম ║ ╚═══════════════════════════════════╝" Incorrect = "দুঃখিত! একটি ভুল সংকেত," Incorrect2 = "পুনরায় এর মাধ্যমে প্রবেশ করুন" Download = "ডাউনলোড করতে সমস্যা হচ্ছে" Downlo...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/lv.ps1
PowerShell
mit
20,670
main
3,477
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "Hmm. Nepareiza vērtība," Incorrect2 = "lūdzu ievadiet to vēlreiz " Download = "Kļūda lejuplādējot" Download2 = "Atkārtosim l...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/fr.ps1
PowerShell
mit
20,670
main
3,828
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════════╗ ║ Bienvenue sur SpotX pour Windows ║ ╚══════════════════════════════════╝" Incorrect = "Oups, une valeur est incorrecte," Incorrect2 = "veuillez recommencer " Download = "Erreur durant le téléchargement" Do...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ro.ps1
PowerShell
mit
20,670
main
3,709
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════════════╗ ║ Bine ați venit la SpotX pentru Windows ║ ╚════════════════════════════════════════╝" Incorrect = "Ups, o valoare incorectă," Incorrect2 = "introduceți din nou prin " Download = "Eroare la descărcare" ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/el.ps1
PowerShell
mit
20,670
main
5,184
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════════╗ ║ Καλώς ήρθατε στο SpotX για Windows ║ ╚════════════════════════════════════╝" Incorrect = "Ουπς, μια λανθασμένη τιμή," Incorrect2 = "εισάγετε μια νέα τιμή " Download = "Σφάλμα λήψης" Download2 = "Θ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/fi.ps1
PowerShell
mit
20,670
main
3,556
[PSCustomObject]@{ Welcome = " ╔═══════════════════════════════╗ ║ Tervetuloa SpotX:n Windowsiin ║ ╚═══════════════════════════════╝" Incorrect = "Hupsista, väärä arvo," Incorrect2 = "Syötä uudelleen " Download = "Latauksen aikana tapahtui virhe" Download2 = "Pyydetää...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ko.ps1
PowerShell
mit
20,670
main
3,855
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "이런, 잘못된 값이네요," Incorrect2 = "다시 입력해주세요 " Download = "다운로드 오류" Download2 = "5초 후 다시 시도합니다..." Download3 = "오류 발생" ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/ka.ps1
PowerShell
mit
20,670
main
5,944
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "უპს, არასწორი შენატანი," Incorrect2 = "მაგრამ თავიდან სცადე" Download = "შეცდომა ჩაწერის დროს" Download2 = "თავიდან ვცდი 5 წ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/zh.ps1
PowerShell
mit
20,670
main
3,182
[PSCustomObject]@{ Welcome = " ╔════════════════════════════════╗ ║ 欢迎使用 SpotX 的 Windows 版本 ║ ╚════════════════════════════════╝" Incorrect = "糟糕,不正确的参数," Incorrect2 = "请重新输入 " Download = "下载错误" Download2 = "将在五秒后重试" Download3 = "再次出错" Download4 = ...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/cs.ps1
PowerShell
mit
20,670
main
3,503
[PSCustomObject]@{ Welcome = " ╔═════════════════════════════╗ ║ Vítejte v SpotX pro Windows ║ ╚═════════════════════════════╝" Incorrect = "Ups, nesprávná hodnota," Incorrect2 = "zadejte znovu přes " Download = "Chyba při stahování" Download2 = "Zkusím znovu za 5 sek...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/zh-TW.ps1
PowerShell
mit
20,670
main
3,122
[PSCustomObject]@{ Welcome = " ╔═════════════════════════════╗ ║ 歡迎使用 SpotX Windows 版 ║ ╚═════════════════════════════╝" Incorrect = "糟糕,參數錯誤," Incorrect2 = "請重新輸入 " Download = "下載錯誤" Download2 = "將在五秒後重試" Download3 = "再次出錯" Download4 = "檢查您的網路設定...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/pl.ps1
PowerShell
mit
20,670
main
3,515
[PSCustomObject]@{ Welcome = " ╔════════════════════════════╗ ║ Witamy w SpotX dla Windows ║ ╚════════════════════════════╝" Incorrect = "Ups, błędna wartość," Incorrect2 = "wejdź ponownie przez " Download = "Błąd podczas pobierania" Download2 = "Ponowna próba za 5 se...
github
SpotX-Official/SpotX
https://github.com/SpotX-Official/SpotX
scripts/installer-lang/sr.ps1
PowerShell
mit
20,670
main
4,860
[PSCustomObject]@{ Welcome = " ╔══════════════════════════════╗ ║ Welcome to SpotX for Windows ║ ╚══════════════════════════════╝" Incorrect = "Упс, нетачна вредност," Incorrect2 = "унесите поново за " Download = "Грешка преузимања" Download2 = "Понован захтев за 5 се...
github
YerongAI/Office-Tool
https://github.com/YerongAI/Office-Tool
src/scripts/Get-OfficeToolPlus.ps1
PowerShell
mit
13,368
main
15,987
# Enable TLSv1.2 for compatibility with older clients. [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12 # Do not display progress for WebRequest. $ProgressPreference = 'SilentlyContinue' $Host.UI.RawUI.WindowTitle = "Of...
github
YerongAI/Office-Tool
https://github.com/YerongAI/Office-Tool
src/scripts/Invoke-Commands.ps1
PowerShell
mit
13,368
main
5,985
# Set commands like this: # $Commands = @("deploy /add O365ProPlusRetail_en-us", "ospp /inslicid MondoVolume /sethst 192.168.1.1 /act") # The commands will be executed in sequence after downloading Office Tool Plus. # Enable TLSv1.2 for compatibility with older clients [System.Net.ServicePointManager]::SecurityProtoco...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/CreateAzureVMFromPackerTemplate.ps1
PowerShell
mit
12,693
main
3,875
Function CreateAzureVMFromPackerTemplate { <# .SYNOPSIS A helper function to deploy a VM from a generated image. .DESCRIPTION Creates an Azure VM from a template. Also generates network resources in Azure to make the VM accessible. .PARAMETER SubscriptionId ...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/GenerateResourcesAndImage.ps1
PowerShell
mit
12,693
main
17,905
$ErrorActionPreference = 'Stop' enum ImageType { Windows2022 = 1 Windows2025 = 2 Windows2025_vs2026 = 3 Ubuntu2204 = 4 Ubuntu2404 = 5 } Function Get-PackerTemplate { param ( [Parameter(Mandatory = $True)] [string] $RepositoryRoot, [Par...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/WaitWorkflowCompletion.ps1
PowerShell
mit
12,693
main
1,599
Param ( [Parameter(Mandatory)] [string] $WorkflowRunId, [Parameter(Mandatory)] [string] $Repository, [Parameter(Mandatory)] [string] $AccessToken, [int] $RetryIntervalSeconds = 300, [int] $MaxRetryCount = 0 ) Import-Module (Join-Path $PSScriptRoot "GitHubApi.psm1") function Wait-ForWor...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/CheckOutdatedVersionPinning.ps1
PowerShell
mit
12,693
main
3,230
$ErrorActionPreference = 'Stop' # Find all toolset JSON files $toolsetFiles = Get-ChildItem -Recurse -Filter "toolset-*.json" | Where-Object { $_.Name -notlike "*schema.json" } $expiringPins = @() $now = Get-Date $warningDays = 30 # Warn if expiring within 30 days foreach ($file in $toolsetFiles) { Write-Host "P...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/CheckJsonSchema.ps1
PowerShell
mit
12,693
main
1,814
$ErrorActionPreference = 'Stop' # A JSON schema validator which supports outputting line numbers for errors # this allows us to put annotations on builds for errors in the JSON files # `Test-Json` built in cmdline doesn't. No existing cli tool supports this # that I could find either. See: https://github.com/lawrenceg...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/GitHubApi.psm1
PowerShell
mit
12,693
main
2,872
class GithubApi { [string] $Repository [object] hidden $AuthHeader GithubApi( [string] $Repository, [string] $AccessToken ) { $this.Repository = $Repository $this.AuthHeader = $this.BuildAuth($AccessToken) } [object] hidden BuildAuth([string]$AccessToken) { ...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/SoftwareReport.psm1
PowerShell
mit
12,693
main
1,012
using module ./SoftwareReport.BaseNodes.psm1 using module ./SoftwareReport.Nodes.psm1 class SoftwareReport { [ValidateNotNullOrEmpty()] [HeaderNode] $Root SoftwareReport([String] $Title) { $this.Root = [HeaderNode]::new($Title) } SoftwareReport([HeaderNode] $Root) { $this.Root = $...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/SoftwareReport.DifferenceRender.psm1
PowerShell
mit
12,693
main
9,752
using module ./SoftwareReport.psm1 using module ./SoftwareReport.BaseNodes.psm1 using module ./SoftwareReport.Nodes.psm1 class SoftwareReportDifferenceRender { [String] GenerateMarkdownReport([SoftwareReport] $CurrentReport, [SoftwareReport] $PreviousReport, [ReportDifferenceItem[]] $AddedItems, [ReportDifferenceI...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/SoftwareReport.Nodes.psm1
PowerShell
mit
12,693
main
14,322
using module ./SoftwareReport.BaseNodes.psm1 ######################################### ### Nodes to describe image software #### ######################################### # NodesFactory is used to simplify parsing different types of notes # Every node has own logic of parsing and this method just invokes "FromJsonObj...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/SoftwareReport.BaseNodes.psm1
PowerShell
mit
12,693
main
1,563
############################ ### Abstract base nodes #### ############################ # Abstract base class for all nodes class BaseNode { [Boolean] ShouldBeIncludedToDiff() { return $false } [String] ToMarkdown() { return $this.ToMarkdown(1) } [String] ToMarkdown([Int32] $Level)...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/SoftwareReport.DifferenceCalculator.psm1
PowerShell
mit
12,693
main
8,303
using module ./SoftwareReport.psm1 using module ./SoftwareReport.BaseNodes.psm1 using module ./SoftwareReport.Nodes.psm1 using module ./SoftwareReport.DifferenceRender.psm1 class SoftwareReportDifferenceCalculator { [ValidateNotNullOrEmpty()] hidden [SoftwareReport] $PreviousReport [ValidateNotNullOrEmpty(...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/Calculate-ImagesDifference.ps1
PowerShell
mit
12,693
main
2,252
using module ./SoftwareReport.psm1 using module ./SoftwareReport.DifferenceCalculator.psm1 <# .SYNOPSIS Calculates the difference between two software reports and saves it to a file. .PARAMETER PreviousJsonReportPath Path to the previous software report. .PARAMETER CurrentJsonReportPath Path to the current...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/SoftwareReport.DifferenceRender.Unit.Tests.ps1
PowerShell
mit
12,693
main
9,356
using module ../SoftwareReport.Nodes.psm1 using module ../SoftwareReport.DifferenceRender.psm1 BeforeDiscovery { Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking } Describe "ComparerReport.UnitTests" { BeforeAll { $script:DifferenceRender = [SoftwareReportDifferenceRend...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/SoftwareReport.DifferenceCalculator.Unit.Tests.ps1
PowerShell
mit
12,693
main
33,227
using module ../SoftwareReport.Nodes.psm1 using module ../SoftwareReport.DifferenceCalculator.psm1 BeforeDiscovery { Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking } Describe "Comparer.UnitTests" { Describe "Headers Tree" { It "Add Node to existing header" { ...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/SoftwareReport.Nodes.Unit.Tests.ps1
PowerShell
mit
12,693
main
26,299
using module ../SoftwareReport.Nodes.psm1 BeforeDiscovery { Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking } Describe "Nodes.UnitTests" { Context "ToolVersionNode" { It "ToMarkdown" { $node = [ToolVersionNode]::new("MyTool", "2.1.3") $node.ToMa...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/SoftwareReport.Difference.E2E.Tests.ps1
PowerShell
mit
12,693
main
21,974
using module ../SoftwareReport.psm1 using module ../SoftwareReport.DifferenceCalculator.psm1 Describe "Comparer.E2E" { It "Some tools are updated" { # Previous report $prevSoftwareReport = [SoftwareReport]::new("macOS 11") $prevSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/SoftwareReport.E2E.Tests.ps1
PowerShell
mit
12,693
main
3,361
using module ../SoftwareReport.psm1 using module ../SoftwareReport.Nodes.psm1 Describe "SoftwareReport.E2E" { Context "Report example 1" { BeforeEach { $softwareReport = [SoftwareReport]::new("macOS 11") $softwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7 (20G817)") ...
github
actions/runner-images
https://github.com/actions/runner-images
helpers/software-report-base/tests/TestHelpers.psm1
PowerShell
mit
12,693
main
1,107
function ShouldBeArray([Array] $ActualValue, [Array]$ExpectedValue, [Switch] $Negate, [String] $Because) { if ($Negate) { throw "Negation is not supported for Should-BeArray" } if ($ExpectedValue.Count -eq 0) { throw "Expected array cannot be empty. Use Should-BeNullOrEmpty instead." } ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/assets/post-gen/GenerateIISExpressCertificate.ps1
PowerShell
mit
12,693
main
1,419
$friendlyName = "IIS Express Development Certificate" $certStore = "Cert:\LocalMachine\My" $oldCert = Get-ChildItem $certStore | Where-Object FriendlyName -match $friendlyName if(-not $oldCert) { Write-Host "$friendlyName certificate not found" return } Write-Host "Removing $($oldCert.Thumbprint) certificate"...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/assets/post-gen/InternetExplorerConfiguration.ps1
PowerShell
mit
12,693
main
945
# https://docs.microsoft.com/en-us/troubleshoot/browsers/enhanced-security-configuration-faq#how-to-disable-internet-explorer-esc-by-using-a-script # turn off the Internet Explorer Enhanced Security feature Rundll32 iesetup.dll, IEHardenLMSettings, 1, True Rundll32 iesetup.dll, IEHardenUser, 1, True Rundll32 iesetup.dl...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/assets/post-gen/VSConfiguration.ps1
PowerShell
mit
12,693
main
602
$vsInstallRoot = (Get-VisualStudioInstance).InstallationPath $devEnvPath = "$vsInstallRoot\Common7\IDE\devenv.exe" # Initialize Visual Studio Experimental Instance # The Out-Null cmdlet is required to ensure PowerShell waits until the '/ResetSettings' command fully completes. & "$devEnvPath" /RootSuffix Exp /ResetSett...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/assets/post-gen/Msys2FirstLaunch.ps1
PowerShell
mit
12,693
main
121
# create user profile at the first launch $null = cmd /c "C:\msys64\usr\bin\bash.exe -leo pipefail -c 'echo $SHELL' 2>&1"
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/ChocoHelpers.ps1
PowerShell
mit
12,693
main
3,050
function Install-ChocoPackage { <# .SYNOPSIS A function to install a Chocolatey package with retries. .DESCRIPTION This function attempts to install a specified Chocolatey package. If the installation fails, it retries a specified number of times. .PARAMETER PackageName ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/VisualStudioHelpers.ps1
PowerShell
mit
12,693
main
13,674
Function Install-VisualStudio { <# .SYNOPSIS A helper function to install Visual Studio. .DESCRIPTION Prepare system environment, and install Visual Studio bootstrapper with selected workloads. .PARAMETER Version The version of Visual Studio that will be installed. Required par...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/AndroidHelpers.ps1
PowerShell
mit
12,693
main
5,407
function Get-AndroidPackages { <# .SYNOPSIS This function returns a list of available Android packages. .DESCRIPTION The Get-AndroidPackages function checks if a list of packages is already available in a file. If not, it uses the sdkmanager.bat script to generate a list of availabl...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/ImageHelpers.psm1
PowerShell
mit
12,693
main
1,498
[CmdletBinding()] param() . $PSScriptRoot\AndroidHelpers.ps1 Export-ModuleMember -Function @( 'Get-AndroidPackages' 'Get-AndroidPlatformPackages' 'Get-AndroidBuildToolPackages' 'Get-AndroidInstalledPackages' ) . $PSScriptRoot\ChocoHelpers.ps1 Export-ModuleMember -Function @( 'Install-ChocoPackage'...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/PathHelpers.ps1
PowerShell
mit
12,693
main
4,021
function Mount-RegistryHive { <# .SYNOPSIS Mounts a registry hive from a file. .DESCRIPTION The Mount-RegistryHive function loads a registry hive from a specified file into a specified subkey. .PARAMETER FileName The path to the file from which to load the registry hive. ....
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/ImageHelpers.psd1
PowerShell
mit
12,693
main
3,497
@{ # Script module or binary module file associated with this manifest. RootModule = 'ImageHelpers.psm1' # Version number of this module. ModuleVersion = '0.0.1' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = 'c9334909-16a1-48f1-a94a-c7baf1b961d9' # Descriptio...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/InstallHelpers.ps1
PowerShell
mit
12,693
main
42,190
function Install-Binary { <# .SYNOPSIS A function to install binaries from either a URL or a local path. .DESCRIPTION This function downloads and installs .exe or .msi binaries from a specified URL or a local path. It also supports checking the binary's signature and SHA256/SHA512 sum befor...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/helpers/test/ImageHelpers.Tests.ps1
PowerShell
mit
12,693
main
299
$ModuleManifestName = 'ImageHelpers.psd1' $ModuleManifestPath = "$PSScriptRoot\..\$ModuleManifestName" Describe 'Module Manifest Tests' { It 'Passes Test-ModuleManifest' { Test-ModuleManifest -Path $ModuleManifestPath | Should Not BeNullOrEmpty $? | Should Be $true } }
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-DockerWinCred.ps1
PowerShell
mit
12,693
main
985
################################################################################ ## File: Install-Docker-WinCred.ps1 ## Desc: Install Docker credential helper. ## Supply chain security: checksum validation ################################################################################ Write-Host "Install docker-...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WDK.ps1
PowerShell
mit
12,693
main
912
################################################################################ ## File: Install-WDK.ps1 ## Desc: Install the Windows Driver Kit ################################################################################ # Requires Windows SDK with the same version number as the WDK if (Test-IsWin22-X64) { ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WSL2.ps1
PowerShell
mit
12,693
main
461
Write-Host "Install WSL2" $version = (Get-GithubReleasesByVersion -Repo "microsoft/WSL" -Version "latest").version $downloadUrl = Resolve-GithubReleaseAssetUrl ` -Repo "microsoft/WSL" ` -Version $version ` -UrlMatchPattern "wsl.*.x64.msi" Install-Binary -Type MSI ` -Url $downloadUrl Write-Host "Perf...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WindowsFeatures.ps1
PowerShell
mit
12,693
main
1,534
#################################################################################### ## File: Install-WindowsFeatures.ps1 ## Desc: Install Windows Features #################################################################################### $windowsFeatures = (Get-ToolsetContent).windowsFeatures foreach ($feature...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-ChocolateyPackages.ps1
PowerShell
mit
12,693
main
494
################################################################################ ## File: Install-ChocolateyPackages.ps1 ## Desc: Install common Chocolatey packages ################################################################################ $commonPackages = (Get-ToolsetContent).choco.common_packages foreach...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-NSIS.ps1
PowerShell
mit
12,693
main
522
################################################################################ ## File: Install-NSIS.ps1 ## Desc: Install NSIS ## Supply chain security: NSIS - managed by package manager ################################################################################ $nsisVersion = (Get-ToolsetContent).nsis.ver...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Docker.ps1
PowerShell
mit
12,693
main
2,678
################################################################################ ## File: Install-Docker.ps1 ## Desc: Install Docker. ## Must be an independent step because it requires a restart before we ## can continue. ##############################################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PostgreSQL.ps1
PowerShell
mit
12,693
main
4,866
################################################################################ ## File: Install-PostgreSQL.ps1 ## Desc: Install PostgreSQL ################################################################################ # Define user and password for PostgreSQL database $pgUser = "postgres" $pgPwd = "root" # S...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PyPy.ps1
PowerShell
mit
12,693
main
4,853
################################################################################ ## File: Install-PyPy.ps1 ## Desc: Install PyPy ## Supply chain security: checksum validation ################################################################################ function Install-PyPy { param( [String] $Packa...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Ruby.ps1
PowerShell
mit
12,693
main
3,663
################################################################################ ## File: Install-Ruby.ps1 ## Desc: Install Ruby using the RubyInstaller2 package and set the default Ruby version ################################################################################ # Most of this logic is from # https://...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-VSExtensions.ps1
PowerShell
mit
12,693
main
967
################################################################################### ## File: Install-VSExtensions.ps1 ## Desc: Install the Visual Studio Extensions from toolset.json ################################################################################### $toolset = Get-ToolsetContent $vsixPackagesList =...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WebPlatformInstaller.ps1
PowerShell
mit
12,693
main
437
################################################################################ ## File: Install-WebPI.ps1 ## Desc: Install WebPlatformInstaller ################################################################################ Install-Binary -Type MSI ` -Url 'https://go.microsoft.com/fwlink/?LinkId=287166' ` ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-SQLPowerShellTools.ps1
PowerShell
mit
12,693
main
706
################################################################################ ## File: Install-SQLPowerShellTools.ps1 ## Desc: Install SQL PowerShell tool ################################################################################ $baseUrl = "https://download.microsoft.com/download/B/1/7/B1783FE9-717B-4F78...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Bazel.ps1
PowerShell
mit
12,693
main
471
################################################################################ ## File: Install-Bazel.ps1 ## Desc: Install Bazel and Bazelisk (A user-friendly launcher for Bazel) ################################################################################ Install-ChocoPackage bazel npm install -g @bazel/baz...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WindowsUpdates.ps1
PowerShell
mit
12,693
main
1,945
################################################################################ ## File: Install-WindowsUpdates.ps1 ## Desc: Install Windows Updates. ## Should be run at end, just before SoftwareReport and Finalize-VM.ps1. ################################################################################ fu...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Toolset.ps1
PowerShell
mit
12,693
main
2,379
################################################################################ ## File: Install-Toolset.ps1 ## Team: CI-Build ## Desc: Install toolset ################################################################################ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Mingw64.ps1
PowerShell
mit
12,693
main
1,391
################################################################################ ## File: Install-Mingw64.ps1 ## Desc: Install GNU tools for Windows ################################################################################ # Install version specified in the toolset $version = (Get-ToolsetContent).mingw.vers...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-Toolset.ps1
PowerShell
mit
12,693
main
2,301
################################################################################ ## File: Configure-Toolset.ps1 ## Team: CI-Build ## Desc: Configure Toolset ################################################################################ if ( Test-IsArm64 ) { $envVarTemplate = "GOROOT_{0}_{1}_AARCH64" } else...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PowershellAzModules.ps1
PowerShell
mit
12,693
main
1,531
################################################################################ ## File: Install-PowershellAzModules.ps1 ## Desc: Install PowerShell modules used by AzureFileCopy@4, AzureFileCopy@5, AzurePowerShell@4, AzurePowerShell@5 tasks ## Supply chain security: package manager ##############################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-GDIProcessHandleQuota.ps1
PowerShell
mit
12,693
main
843
################################################################################ ## File: Configure-GDIProcessHandleQuota.ps1 ## Desc: Set the GDIProcessHandleQuota value to 20000 ################################################################################ # https://docs.microsoft.com/en-us/windows/win32/sysin...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Invoke-Cleanup.ps1
PowerShell
mit
12,693
main
2,530
################################################################################ ## File: Invoke-Cleanup.ps1 ## Desc: Cleanup WinSxS, temp, cache and compress some directories ################################################################################ Write-Host "Cleanup WinSxS" dism.exe /online /Cleanup-Imag...