[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109804":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":16,"topics":17,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":12,"starSnapshotCount":12,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},109804,"script-automation-toolkit","Layhorn\u002Fscript-automation-toolkit","Layhorn","Automation scripts for Windows, Office and Proxmox tasks",null,"HTML",149,0,37,false,"main",true,[18,19,20,21,22,23,24],"activator","one-line-code","one-liner","proxmox","pve","windows","windows-activaton","2026-11-23 13:53:08","2026-11-12 09:59:06","\u003Cdiv align=\"center\">\n\n# run: Open-Source Single-Line Scripts for Windows 10 & 11\n\n![](files\u002Fpreview.png)\n\n### 🔌 PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002FLayhorn.github.io\u002Fscript-automation-toolkit\u002F)\n\n[![lang](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flang-python-dc2626?style=flat&labelColor=0d1117)]() [![ci](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fci-passing-2ea44f?style=flat&labelColor=0d1117)]() [![state](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstate-released-2ea44f?style=flat&labelColor=0d1117)]() [![powershell-7](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpowershell--7-script-ef4444?style=flat&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nThis repository is a collection of single-line scripts built to remove repetitive setup work from Windows and Proxmox environments. It covers Windows and Office activation, common Proxmox VE tasks such as post-install configuration, Docker, and Home Assistant, plus a handful of extras like Spotify ad removal, Apple USB drivers, and a VS Code installer. Each script is designed to be run directly on the target machine, so there is nothing to download, extract, or configure beforehand. The sections below explain what each script does and how to invoke it.\n\n## ✅ Requirements\n\n- **OS:** Windows 10 \u002F 11\n- **Shell:** PowerShell 5.1+ or PowerShell 7+\n- **Network:** internet access to download the script\n- **Privileges:** standard user\n\n## What it does\n\nThis repository is a grab bag of single-line automation scripts that handle the tedious setup work you'd otherwise do by hand. Each entry is a self-contained one-liner: paste it into a terminal, answer a prompt or two, and it runs the whole job. No package managers, no cloning, no dependency hunting.\n\nThe scripts split into a few practical groups:\n\n- **Windows & Office activation** — a PowerShell one-liner that presents a short menu of activation options. Pick the highlighted choice, let it run, and you're done.\n- **Proxmox VE utilities** — host-level scripts for common post-install chores, including a general post-install script, a Docker installer, and a Home Assistant plus Portainer deployment. These run from the PVE host shell; the Home Assistant script also leaves its config volume in a predictable location so you can back it up or edit it directly.\n- **Desktop conveniences** — PowerShell scripts for ad-free Spotify (SpotX), Apple USB drivers, and a Visual Studio Code installer.\n\nA few things worth knowing about how these behave: the scripts are designed to be idempotent-ish in spirit — they check what's already there rather than blindly reinstalling — but they do make system-level changes (registry tweaks, service installs, package additions), so run them on a machine you're comfortable modifying. Activation scripts and third-party patch tools can trip antivirus heuristics; that's expected, not a bug. The Proxmox scripts assume you're on the host, not inside a container or VM, and the Docker-related ones expect a clean-ish environment to work with.\n\nInput is minimal by design. Most scripts either take no arguments or prompt interactively. Where a script exposes configuration, the README's Configuration section spells it out; otherwise assume defaults are sensible and overridable only by editing the script or passing documented flags.\n\nIf something fails, the failure is usually loud — a non-zero exit or a visible error — rather than silent. Check the output before assuming success.\n\n## Configuration\n\nMost scripts in this collection run without any configuration at all. You invoke them, they ask what they need, and they exit. A few have knobs if you care to turn them.\n\n**Script selection via arguments**\n\nWhere a script supports options, they're passed the same way you'd pass them to any other command. The activation script accepts flags to skip the interactive menu — for example, choosing a target or an activation method up front. If you don't pass anything, it prompts you and waits for a numeric choice. Same pattern applies to the Proxmox helpers: no arguments means interactive, arguments mean hands-off.\n\n**Proxmox host scripts**\n\n- `pve` — the post-install helper. It rewrites repository entries and tweaks the host shell environment. It does not ask for a config file; the changes are applied directly to the PVE host and can be reverted by re-running the stock repo setup.\n- `pved` — installs Docker. No options; it detects the existing Debian base and proceeds.\n- `pveha` — deploys Home Assistant and Portainer as containers. The only thing you might want to set is the data location. Docker volumes land under the standard Docker root, and the Home Assistant config directory is exposed at:\n\n  ```\n  \u002Fvar\u002Flib\u002Fdocker\u002Fvolumes\u002Fhass_config\u002F_data\n  ```\n\n  Edit files there directly if you need to drop in a `configuration.yaml` or tweak integrations before first boot. Portainer is reachable on the usual container port after the script finishes.\n\n**Windows-side scripts**\n\nPowerShell one-liners are self-contained. SpotX takes inline flags — the default invocation includes a theme and update blocking, but you can omit or swap those if you want a different behavior. The Apple USB driver and VS Code installers take no arguments; they detect the environment and install.\n\n**Where settings live**\n\nThere is no central config file, no dotfile to edit, and no environment variable you must set. Each script is a single line because the logic, defaults, and targets are baked in. If you need to change a default, the honest answer is to read the script before running it and adjust the invocation or copy it locally. The collection is designed for \"paste, run, done,\" so configurability stops where convenience begins.\n\n**Sanity checks before running**\n\n- Confirm you're on the right machine — the activation script targets the local Windows installation, and the Proxmox scripts assume you're in a PVE host shell, not a container.\n- If a script fails midway, re-running it is safe for the Proxmox entries; the Windows activation script is idempotent.\n- Keep PowerShell or the PVE shell open long enough to read any output. The one-liners don't write logs to disk by default.\n\n## Examples\n\nEvery example below assumes you already have the script or snippet from this collection ready to run in the appropriate shell. Pick the scenario that matches your goal, paste the corresponding one-liner, and confirm the prompts.\n\n**Activate Windows or Office from PowerShell**\n\nOpen PowerShell with the Windows key + X shortcut, then run the activator entry point. The script prints a menu; pick the option that matches your edition and wait for the confirmation line before closing the window.\n\n```\n# run the activator, then choose a menu option\n```\n\n**Post-install tuning on a Proxmox VE host**\n\nIn the PVE web interface, select your node, open the host shell, and execute the post-install script. It walks through repository cleanup, subscription nag removal, and baseline hardening. Reboot only if the script asks you to.\n\n```\n# from the PVE host shell\n```\n\n**Install Docker on a Proxmox VE host**\n\nSame host shell, different entry point. The Docker script detects the running PVE version, adds the upstream repository, and installs the engine plus compose plugin. Verify with a simple `docker version` afterward.\n\n```\n# from the PVE host shell\n```\n\n**Stand up Home Assistant in a container on Proxmox**\n\nRun the Home Assistant entry point from the host shell. It provisions the container, wires up Portainer for management, and drops the persistent config volume at `\u002Fvar\u002Flib\u002Fdocker\u002Fvolumes\u002Fhass_config\u002F_data`. Point your browser at the container's IP on port 8123 once it finishes.\n\n```\n# from the PVE host shell\n```\n\n**Block Spotify ads on Windows**\n\nIn PowerShell, run the SpotX entry point with the flags shown in the collection. The example below applies the new theme and disables auto-updates in one pass. Restart Spotify afterward so the patched client loads.\n\n```\n# flags: -new_theme -block_update_on\n```\n\n**Install Apple USB drivers on Windows**\n\nUse PowerShell and run the Apple driver entry point. It pulls the signed driver bundle, installs it silently, and reports when the device stack is ready for an iPhone or iPad.\n\n```\n# run the Apple USB driver installer\n```\n\n**Install Visual Studio Code on Windows**\n\nFrom PowerShell, invoke the VS Code entry point. The script fetches the current stable build, runs the installer with sensible defaults, and adds the `code` command to your PATH.\n\n```\n# run the VS Code installer\n```\n\n**Combine scripts in a single session**\n\nBecause each entry point is self-contained, you can chain them in one PowerShell window—activate Windows, install VS Code, then patch Spotify—without reopening the terminal. Each script exits cleanly and returns you to the prompt.\n\n**Re-run safely**\n\nAll scripts are idempotent where it matters: running the Proxmox post-install twice won't duplicate repo entries, and re-running the Docker installer detects an existing engine and skips the heavy work. If a run is interrupted, just execute the same line again.\n\n## FAQ\n\n**Do these scripts actually work on a fresh install?**\nYes — that's the point. Each one-liner is self-contained and pulls what it needs at runtime. Run it on a clean Windows box or a stock Proxmox node and it should just go. If it doesn't, that's a bug, not a config problem.\n\n**Do I need admin or root?**\nFor the Windows and Office activation and the Apple USB drivers: yes, elevated PowerShell. For Proxmox scripts: yes, root on the PVE host (the web shell gives you that by default). The VS Code and SpotX scripts will prompt for elevation if needed.\n\n**Will activation survive updates?**\nWindows\u002FOffice activation sticks through normal updates. Major feature upgrades or reinstallations can reset it — rerun the script. SpotX with update blocking enabled will hold until you remove the block; if Spotify force-updates, rerun to reapply.\n\n**The Proxmox scripts — do they modify the host or just install containers?**\nThe post-install script tweaks the PVE host itself (repos, subscription nag, etc.), so read what it does before running. The Docker and Home Assistant scripts set up runtime and containers; your existing VMs and CTs are untouched.\n\n**Where does my Home Assistant data live after the Proxmox HA script?**\nUnder the Docker volume path shown in the install section. Back that folder up before you migrate or rebuild the container — it's your entire HA config.\n\n**Can I run these more than once?**\nMost are idempotent — rerunning won't break anything, it just re-applies the change. The activator is safe to rerun; Proxmox scripts will skip steps already done. When in doubt, read the script before you pipe it to a shell.\n\n**PowerShell says the script is blocked. What now?**\nExecution policy, usually. Rather than changing it globally, use a process-scoped bypass for that one invocation. Don't permanently set `Unrestricted` just to run a script.\n\n**Can I read the script before running it?**\nYes — and you should. Every one-liner is a thin wrapper; fetch the underlying script and read it first if you're cautious. That's good practice for anything you `irm | iex` or `curl | bash`.\n\n**It failed halfway. Did it leave junk behind?**\nWindows scripts are mostly reversible (reset the activation, uninstall the drivers\u002Fapp). Proxmox scripts may leave a container or Docker volume — check `pct list` and `docker volume ls` and clean up manually if you want a clean slate.\n\n**Does this work offline or behind a proxy?**\nNo — the one-liners fetch their payload at runtime. Behind a proxy, set your env vars first. Offline machines won't work unless you mirror the scripts locally.\n\n**What's the difference between the main entry point and the older\u002Fdeprecated one?**\nThe primary one-liner is the maintained path. The older variants still function but will be retired — migrate to the main entry point when you can.\n\n## Disclaimer\n\nThese scripts are provided as-is, with no warranty of any kind. They modify system settings, install software, and in some cases activate Windows or Office. You are responsible for understanding what each script does before you run it, and for any consequences that follow. If that sounds like a burden, don't run them.\n\nActivation scripts in particular exist in a legal gray area. Whether using them is acceptable depends on your jurisdiction, your license terms, and your conscience. The author of this collection takes no position on that and accepts no liability for how you choose to use them. If you need a fully compliant setup, buy a license.\n\nThese scripts are written for fresh, standard installations. They make assumptions about your system, and they will happily overwrite or reconfigure things if those assumptions don't hold. Back up anything you care about first. Test in a virtual machine if you can. Running a one-liner you don't understand on a production machine is a good way to learn why you shouldn't.\n\nReview the source before executing anything. A single line that fetches and runs remote code is convenient, but convenience cuts both ways — you're trusting whoever controls that endpoint. Read the script, understand the commands, and only then decide whether to proceed.\n\nNo support is guaranteed. Scripts may break as upstream tools, operating systems, or package sources change. Issues and pull requests are welcome, but there is no promise of a fix, a response, or backwards compatibility. If a script stops working, it may simply stay broken.\n\nBy using anything in this repository, you accept full responsibility for the outcome.","这是一个面向 Windows 和 Proxmox VE 环境的单行脚本自动化工具集，提供免下载、即粘即用的 PowerShell 和 Shell 一键执行能力。核心功能包括 Windows\u002FOffice 激活、Proxmox 主机级配置（如 Docker、Home Assistant 部署）、以及桌面实用工具（如 Spotify 去广告、Apple USB 驱动安装、VS Code 安装）。所有脚本均设计为幂等友好、交互简洁，仅需标准用户权限和基础网络连接即可运行。适用于 IT 运维人员、家庭实验室搭建者及需要快速完成系统初始化与常规维护任务的 Windows\u002FProxmox 用户。",2,"2026-11-24 04:37:31","CREATED_QUERY"]