A collection of PowerShell scripts for Windows system management.
Warning: Please inspect the code before executing any script.
Execute any script directly:
Gathering several project for simplicity:
# Download Office 365 installer
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/office.ps1"))) -dir C:\Installers
# Execute Windows debloat
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/debloat.ps1"))) -Silent -CreateRestorePoint
# Activate Windows/Office
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/activation.ps1")))# Install Scoop with proxy
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/scoop-install.ps1"))) -Source proxy
# Resolve bucket references to spc
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/scoop-resolve.ps1"))) -To spc
# Set bucket proxy
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/scoop-proxy.ps1"))) -Bucket main -Url https://gh-proxy.orgDownloads Microsoft Office 365 PlusRetail installer.
Parameters:
-dir <path>: Target directory (default: current directory)-cache: Download only, do not execute
Usage:
.\office.ps1 -dir C:\Installers # Download and execute
.\office.ps1 -cache # Download onlyExecutes Windows debloat script from Win11Debloat.
Usage:
.\debloat.ps1 -Silent -CreateRestorePoint # Silent mode with restore point
.\debloat.ps1 -RemoveApps # Remove default appsAll parameters are passed through to the remote debloat script.
Activates Windows and/or Office using Microsoft Activation Scripts.
Usage:
.\activation.ps1 # Default (HWID)
.\activation.ps1 -KMS38 # KMS38 methodAll arguments are passed through to the remote activation script.
Installs Scoop package manager.
Parameters:
-Source proxy(default): Install with proxy configuration-Source native: Install via official Scoop installer
Usage:
.\scoop-install.ps1 -Source proxy # Install with proxy, configure spc bucket
.\scoop-install.ps1 -Source native # Install nativelyProxy mode:
- Downloads installer via
https://gh-proxy.org - Configures
scoop_repowith proxy - Adds
spcbucket with proxy
Updates bucket references in Scoop install.json files.
Parameters:
-To <bucket>: Target bucket name (required)-From <bucket[]>: Source buckets to replace (default: main, extras, versions, nirsoft, etc.)-DryRun: Preview changes without writing
Usage:
.\scoop-resolve.ps1 -To spc # Resolve all to spc
.\scoop-resolve.ps1 -To spc -DryRun # Preview only
.\scoop-resolve.ps1 -To spc -From main,extras # Specific source bucketsConfigures git proxy for Scoop bucket remotes.
Parameters:
-Bucket <bucket>: Bucket name or*for all buckets (required)-Url <proxy>: Proxy URL to prepend (required)-Reset: Remove proxy, reset to original URL-DryRun: Preview changes without writing
Usage:
.\scoop-proxy.ps1 -Bucket main -Url https://gh-proxy.org # Set proxy
.\scoop-proxy.ps1 -Bucket main -Reset # Remove proxy
.\scoop-proxy.ps1 -Bucket * -Url https://gh-proxy.org -DryRun # Preview allgit clone https://github.com/lvyuemeng/SysKit-Win.gitirm https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/office.ps1 -OutFile office.ps1If scripts fail to run, set the execution policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserAll scripts are available from the following mirrors:
| Platform | URL |
|---|---|
| GitHub | https://github.com/lvyuemeng/SysKit-Win |
| Codeberg | https://codeberg.org/nostalgia/SysKit-Win |
| Gitee | https://gitee.com/nostalgiaLiquid/SysKit-Win |
Raw file URLs:
- GitHub:
https://raw.githubusercontent.com/lvyuemeng/SysKit-Win/master/<script>.ps1 - Codeberg:
https://codeberg.org/nostalgia/SysKit-Win/raw/branch/master/<script>.ps1 - Gitee:
https://gitee.com/nostalgiaLiquid/SysKit-Win/raw/main/<script>.ps1
MIT License - See LICENSE-MIT