Dataset Viewer
Auto-converted to Parquet Duplicate
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
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
windev.ps1
PowerShell
mit
53,427
main
536
<# .SYNOPSIS This Script is used as a target for the https://christitus.com/windev alias. .DESCRIPTION This Script provides a simple way to start the bleeding edge release of winutil. .EXAMPLE irm https://christitus.com/windev | iex OR Run in Admin Powershell > ./windev.ps1 #> $latestTag = (Invoke...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
Compile.ps1
PowerShell
mit
53,427
main
4,926
param ( [switch]$Run, [string]$Arguments ) if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) { Remove-Item ".\winutil.ps1" -Force } $OFS = "`r`n" $scriptname = "winutil.ps1" $workingdir = $PSScriptRoot # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $syn...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
tools/devdocs-generator.ps1
PowerShell
mit
53,427
main
13,590
<# .DESCRIPTION Generates Hugo markdown docs from config/tweaks.json and config/feature.json. Run by the GitHub Actions docs workflow before Hugo build. #> function Update-Progress { param ( [Parameter(Mandatory, position=0)] [string]$StatusMessage, [Parameter(Mandatory, positio...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
tools/Invoke-Preprocessing.ps1
PowerShell
mit
53,427
main
8,327
function Invoke-Preprocessing { <# .SYNOPSIS A function that does Code Formatting using RegEx, useful when trying to force specific coding standard(s) to a project. .PARAMETER ExcludedFiles A list of file paths which're *relative to* 'WorkingDir' Folder, every item in the list can b...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
lint/PSScriptAnalyser.ps1
PowerShell
mit
53,427
main
1,140
@{ # Only diagnostic records of the specified severity will be generated. # Uncomment the following line if you only want Errors and Warnings but # not Information diagnostic records. # Severity = @('Error','Warning') # Analyze **only** the following rules. Use IncludeRules when you want # to i...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
pester/functions.Tests.ps1
PowerShell
mit
53,427
main
2,461
#=========================================================================== # Tests - Functions #=========================================================================== Describe "Comprehensive Checks for PS1 Files in Functions Folder" { BeforeAll { # Get all .ps1 files in the functions folder $...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
pester/configs.Tests.ps1
PowerShell
mit
53,427
main
3,688
# Import Config Files $global:importedconfigs = @{} Get-ChildItem .\config | Where-Object {$_.Extension -eq ".json"} | ForEach-Object { $global:importedconfigs[$psitem.BaseName] = Get-Content $psitem.FullName | ConvertFrom-Json } #=========================================================================== # Tests...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
scripts/start.ps1
PowerShell
mit
53,427
main
3,460
<# .NOTES Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech Version : #{replaceme} #> param ( [string]$Config, [switch]$Run, [switch]$Noui, [switch]$Offline ) if ($Config) { $PARAM_CONFIG = $Config...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
scripts/main.ps1
PowerShell
mit
53,427
main
22,886
# Create enums Add-Type @" public enum PackageManagers { Winget, Choco } "@ # SPDX-License-Identifier: MIT # Set the maximum number of threads for the RunspacePool to the number of threads on the machine $maxthreads = [int]$env:NUMBER_OF_PROCESSORS # Create a new session state for parsing variables into our r...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Update-WinUtilProgramWinget.ps1
PowerShell
mit
53,427
main
623
Function Update-WinUtilProgramWinget { <# .SYNOPSIS This will update all programs using WinGet #> [ScriptBlock]$wingetinstall = { $host.ui.RawUI.WindowTitle = """WinGet Install""" Start-Transcript "$logdir\winget-update_$dateTime.log" -Append winget upgrade --all --...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilCurrentSystem.ps1
PowerShell
mit
53,427
main
5,782
Function Invoke-WinUtilCurrentSystem { <# .SYNOPSIS Checks to see what tweaks have already been applied and what programs are installed, and checks the according boxes .EXAMPLE InvokeWinUtilCurrentSystem -Checkbox "winget" #> param( $CheckBox ) if ($CheckBox -eq ...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Set-WinUtilDNS.ps1
PowerShell
mit
53,427
main
1,379
function Set-WinUtilDNS { <# .SYNOPSIS Sets the DNS of all interfaces that are in the "Up" state. It will lookup the values from the DNS.Json file .PARAMETER DNSProvider The DNS provider to set the DNS server to .EXAMPLE Set-WinUtilDNS -DNSProvider "google" #> param($...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilISOUSB.ps1
PowerShell
mit
53,427
main
13,655
function Invoke-WinUtilISORefreshUSBDrives { $combo = $sync["WPFWin11ISOUSBDriveComboBox"] $removable = @(Get-Disk | Where-Object { $_.BusType -eq "USB" } | Sort-Object Number) $combo.Items.Clear() if ($removable.Count -eq 0) { $combo.Items.Add("No USB drives detected.") $combo.Sele...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Install-WinUtilProgramWinget.ps1
PowerShell
mit
53,427
main
4,223
Function Install-WinUtilProgramWinget { <# .SYNOPSIS Runs the designated action on the provided programs using Winget .PARAMETER Programs A list of programs to process .PARAMETER action The action to perform on the programs, can be either 'Install' or 'Uninstall' .NOTES The triple...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Get-WPFObjectName.ps1
PowerShell
mit
53,427
main
1,051
function Get-WPFObjectName { <# .SYNOPSIS This is a helper function that generates an objectname with the prefix WPF that can be used as a Powershell Variable after compilation. To achieve this, all characters that are not a-z, A-Z or 0-9 are simply removed from the name. .P...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Show-CustomDialog.ps1
PowerShell
mit
53,427
main
13,357
function Show-CustomDialog { <# .SYNOPSIS Displays a custom dialog box with an image, heading, message, and an OK button. .DESCRIPTION This function creates a custom dialog box with the specified message and additional elements such as an image, heading, and an OK button. The dialog box is designed...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilFeatureInstall.ps1
PowerShell
mit
53,427
main
2,033
function Invoke-WinUtilFeatureInstall { <# .SYNOPSIS Converts all the values from the tweaks.json and routes them to the appropriate function #> param( $CheckBox ) if($sync.configs.feature.$CheckBox.feature) { Foreach( $feature in $sync.configs.feature.$CheckBox.featu...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Find-TweaksByNameOrDescription.ps1
PowerShell
mit
53,427
main
4,907
function Find-TweaksByNameOrDescription { <# .SYNOPSIS Searches through the Tweaks on the Tweaks Tab and hides all entries that do not match the search string .PARAMETER SearchString The string to be searched for #> param( [Parameter(Mandatory=$false)] ...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinutilThemeChange.ps1
PowerShell
mit
53,427
main
7,438
function Invoke-WinutilThemeChange { <# .SYNOPSIS Toggles between light and dark themes for a Windows utility application. .DESCRIPTION This function toggles the theme of the user interface between 'Light' and 'Dark' modes, modifying various UI elements such as colors, margins, corn...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Get-WinUtilSelectedPackages.ps1
PowerShell
mit
53,427
main
2,226
function Get-WinUtilSelectedPackages { <# .SYNOPSIS Sorts given packages based on installer preference and availability. .OUTPUTS Hashtable. Key = Package Manager, Value = ArrayList of packages to install #> param ( [Parameter(Mandatory=$true)] $PackageList, ...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Initialize-InstallCategoryAppList.ps1
PowerShell
mit
53,427
main
5,012
function Initialize-InstallCategoryAppList { <# .SYNOPSIS Clears the Target Element and sets up a "Loading" message. This is done, because loading of all apps can take a bit of time in some scenarios Iterates through all Categories and Apps and adds them to the UI Used to...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Hide-WPFInstallAppBusy.ps1
PowerShell
mit
53,427
main
461
function Hide-WPFInstallAppBusy { <# .SYNOPSIS Hides the busy overlay in the install app area of the WPF form. This is used to indicate that an install or uninstall has finished. #> Invoke-WPFUIThread -ScriptBlock { $sync.InstallAppAreaOverlay.Visibility = [Windows.Visibility]::C...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilInstallPSProfile.ps1
PowerShell
mit
53,427
main
280
function Invoke-WinUtilInstallPSProfile { if (Test-Path $Profile) { Rename-Item $Profile -NewName ($Profile + '.bak') } Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' }
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Reset-WPFCheckBoxes.ps1
PowerShell
mit
53,427
main
3,480
function Reset-WPFCheckBoxes { <# .SYNOPSIS Set winutil checkboxs to match $sync.selected values. Should only need to be run if $sync.selected updated outside of UI (i.e. presets or import) .PARAMETER doToggles Whether or not to set UI toggles. WARNING: they will trigger if altered...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Initialize-InstallAppArea.ps1
PowerShell
mit
53,427
main
6,138
function Initialize-InstallAppArea { <# .SYNOPSIS Creates a [Windows.Controls.ScrollViewer] containing a [Windows.Controls.ItemsControl] which is setup to use Virtualization to only load the visible elements for performance reasons. This is used as the parent object f...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Show-WPFInstallAppBusy.ps1
PowerShell
mit
53,427
main
974
function Show-WPFInstallAppBusy { <# .SYNOPSIS Displays a busy overlay in the install app area of the WPF form. This is used to indicate that an install or uninstall is in progress. Dynamically updates the size of the overlay based on the app area on each invocation. .PARAMETER text ...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilAssets.ps1
PowerShell
mit
53,427
main
8,539
function Invoke-WinUtilAssets { param ( $type, $Size, [switch]$render ) # Create the Viewbox and set its size $LogoViewbox = New-Object Windows.Controls.Viewbox $LogoViewbox.Width = $Size $LogoViewbox.Height = $Size # Create a Canvas to hold the paths $canvas = New-Object Windows.Con...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Get-LocalizedYesNo.ps1
PowerShell
mit
53,427
main
1,189
function Get-LocalizedYesNo { <# .SYNOPSIS This function runs choice.exe and captures its output to extract yes no in a localized Windows .DESCRIPTION The function retrieves the output of the command 'cmd /c "choice <nul 2>nul"' and converts the default output for Yes and No in the localized fo...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Install-WinUtilChoco.ps1
PowerShell
mit
53,427
main
397
function Install-WinUtilChoco { <# .SYNOPSIS Installs Chocolatey if it is not already installed #> if ((Test-WinUtilPackageManager -choco) -eq "installed") { return } Write-Host "Chocolatey is not installed. Installing now..." Invoke-WebRequest -Uri https://community.choc...
github
ChrisTitusTech/winutil
https://github.com/ChrisTitusTech/winutil
functions/private/Invoke-WinUtilISOScript.ps1
PowerShell
mit
53,427
main
22,921
function Invoke-WinUtilISOScript { <# .SYNOPSIS Applies WinUtil modifications to a mounted Windows 11 install.wim image. .DESCRIPTION Removes AppX bloatware and OneDrive, optionally injects all drivers exported from the running system into install.wim and boot.wim (controlled by the...
End of preview. Expand in Data Studio

PowerShell Code Corpus

A dataset of PowerShell scripts collected from public GitHub repositories.

Content

  • 4,632 files from popular PowerShell repositories on GitHub
  • Sourced from repos with the highest star counts (quality signal)
  • Each record contains the raw script text plus metadata

Fields

Field Description
source Always github
repo owner/repo slug
repo_url Full GitHub URL
path File path within the repo
language Always PowerShell
license SPDX license identifier
stars GitHub star count at collection time
ref Branch name
size_bytes File size in bytes
text Raw script content

Usage

from datasets import load_dataset

ds = load_dataset("powershell-code-corpus", split="train")

License

Individual files retain their original licenses as specified in the license field.

Downloads last month
-