{"id":50721399,"url":"https://github.com/hmwassim/windows-scripts","last_synced_at":"2026-06-10T00:02:34.488Z","repository":{"id":341928034,"uuid":"1081882727","full_name":"hmwassim/windows-scripts","owner":"hmwassim","description":"Some useful scripts for windows users","archived":false,"fork":false,"pushed_at":"2026-03-15T23:34:07.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-16T10:47:36.149Z","etag":null,"topics":["ltsc","ltsc2024","powershell","win11","windows","windows-11"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmwassim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-23T12:30:41.000Z","updated_at":"2026-03-15T23:34:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hmwassim/windows-scripts","commit_stats":null,"previous_names":["habibimedwassim/windows-scripts","hmwassim/windows-scripts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hmwassim/windows-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmwassim%2Fwindows-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmwassim%2Fwindows-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmwassim%2Fwindows-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmwassim%2Fwindows-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmwassim","download_url":"https://codeload.github.com/hmwassim/windows-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmwassim%2Fwindows-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34130642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ltsc","ltsc2024","powershell","win11","windows","windows-11"],"created_at":"2026-06-10T00:02:34.328Z","updated_at":"2026-06-10T00:02:34.461Z","avatar_url":"https://github.com/hmwassim.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-scripts\n\nA collection of PowerShell scripts to fully set up a fresh Windows LTSC (or any clean Windows) install for **gaming, content creation, and development** — no Microsoft Store required.\n\n---\n\n## What it does\n\n| Step | Script | Run as | Description |\n|------|--------|--------|-------------|\n| 0 | `Install-Winget.ps1` | Admin | Installs winget from GitHub (no Store needed) |\n| 1 | `Install-Runtimes.ps1` | Admin | VCRedist, .NET, DirectX, WebView2, XNA, 7-Zip, codecs |\n| 2 | `Set-Tweaks.ps1` | Admin | Classic context menu, Explorer defaults, accessibility, Photo Viewer |\n| 3 | `Install-Dev.ps1` | **User** | PS7 (interactive), Terminal, eza, Starship, PS profile |\n\n---\n\n## Quick start\n\n\u003e **On LTSC** PowerShell 7 is not pre-installed — open **Windows PowerShell** (the built-in one) as Administrator.\n\n**Step 1 – Admin setup** (runtimes + tweaks). Open **Windows PowerShell as Administrator**:\n\n```powershell\nSet-ExecutionPolicy Bypass -Scope Process -Force\nirm https://raw.githubusercontent.com/hmwassim/windows-scripts/main/setup.ps1 | iex\n```\n\nThe script shows a summary of everything that will be installed and applied, then asks you to confirm with **Y/N** before proceeding. It handles winget install if missing, all runtimes, and system tweaks.\n\n**Step 2 – Shell setup** (run as your normal user, not elevated):\n\n```powershell\nSet-ExecutionPolicy Bypass -Scope Process -Force\nirm https://raw.githubusercontent.com/hmwassim/windows-scripts/main/setup.ps1 | iex\n```\n\nThe script shows the list of tools that will be installed and asks for **Y/N** confirmation. It launches the PS7 MSI interactively (so you can uncheck telemetry and the Windows Update auto-update option), then silently installs Windows Terminal, eza, and Starship, and deploys your PowerShell profile.\n\n---\n\n## Scripts\n\n### `setup.ps1`\n\nThe entry point. Runs cleanly from a remote `irm … | iex` one-liner or from a local clone. Automatically detects whether it is running elevated or not:\n\n**As Administrator** — shows a bullet-point summary and asks **Y/N**:\n\n```\nRuntimes:\n  - VC++ Redistributables (2005-2022)\n  - .NET Desktop Runtimes\n  - Windows App Runtime\n  - Edge WebView2 Runtime\n  - DirectX End-User Runtime\n  - OpenAL\n  - XNA Framework 4.0\n  - 7-Zip\n  - K-Lite Codec Pack\n\nTweaks:\n  - Classic right-click menu\n  - Show file extensions\n  - Show hidden files\n  - Disable accessibility hotkeys\n  - Disable mouse acceleration\n  - Restore Windows Photo Viewer (optional, prompted)\n```\n\n**As Normal User** — shows the dev/shell tools and asks **Y/N**:\n\n```\nDev / Shell Tools:\n  - PowerShell 7\n  - Windows Terminal\n  - eza (modern ls)\n  - Starship prompt\n  - PowerShell profile\n```\n\nAt the end of the admin path it prints instructions to re-run as a normal user.\n\n---\n\n### `scripts/Install-Winget.ps1`\n\nInstalls [winget](https://github.com/microsoft/winget-cli) on machines that don't have it (LTSC, Server, Sandbox). Downloads:\n\n- `Microsoft.VCLibs.x64.14.00.Desktop.appx` (via `aka.ms` redirect)\n- `Microsoft.UI.Xaml 2.8` (from NuGet, no Store required)\n- Latest `Microsoft.DesktopAppInstaller` msixbundle from the GitHub release\n\n---\n\n### `scripts/Install-Runtimes.ps1`\n\nInstalls all common runtimes that games and apps depend on:\n\n- Visual C++ Redistributables (2005, 2008, 2010, 2012, 2013, 2015+) — x86 \u0026 x64\n- .NET Desktop Runtime (3.1, 5, 6, 7, 8, 9, 10)\n- Windows App Runtime 1.8\n- Microsoft Edge WebView2 Runtime\n- DirectX End-User Runtime\n- OpenAL\n- XNA Framework 4.0\n- 7-Zip\n- K-Lite Codec Pack Standard\n\n---\n\n### `scripts/Install-Dev.ps1`\n\n\u003e **Run as your normal user — not as Administrator.**  \n\u003e winget installs user-scoped by default when not elevated, which is correct for these tools. The script will refuse to run if it detects an elevated session.\n\nInstalls the base shell environment:\n\n- **PowerShell 7** — launched via `winget install -i` (interactive MSI) so you can uncheck telemetry and the \"update via Windows Update\" option\n- **Windows Terminal**\n- **eza** (modern `ls`)\n- **Starship** prompt\n- Deploys `profile/Microsoft.PowerShell_profile.ps1` to the PS7 profile path\n\n---\n\n### `scripts/Set-Tweaks.ps1`\n\nRegistry and system tweaks (requires Admin):\n\n- **Classic context menu** — restores the Windows 10-style right-click menu\n- Show file extensions in Explorer\n- Show hidden files and folders\n- Disable Sticky / Filter / Toggle key prompts\n- Disable mouse enhance pointer precision (acceleration)\n- **Windows Photo Viewer** — prompts to restore the classic image viewer or undo the change (imports `profile/windows_photo_viewer.reg` / `windows_photo_viewer_undo.reg`)\n\n---\n\n### `profile/Microsoft.PowerShell_profile.ps1`\n\nConfigures `eza`-based `ls` aliases and initialises the Starship prompt.\n\n---\n\n### `profile/windows_photo_viewer.reg` / `windows_photo_viewer_undo.reg`\n\nRegistry files that restore (or remove) the classic **Windows Photo Viewer** on Windows 10/11. Imported automatically by `Set-Tweaks.ps1` when the user chooses the Photo Viewer option. Can also be double-clicked manually.  \nInstalled automatically by `Install-Dev.ps1`, or copy it manually to:\n\n```\n%USERPROFILE%\\Documents\\PowerShell\\Microsoft.PowerShell_profile.ps1\n```\n\n---\n\n## Notes\n\n- `setup.ps1` and all `Install-Runtimes` / `Set-Tweaks` / `Install-Winget` scripts require **Administrator** privileges.\n- `Install-Dev.ps1` should be run as a **normal user** (installs per-user by default).\n- Scripts are designed to be idempotent — safe to re-run; winget will skip already-installed packages.\n- `irm … | iex` downloads each sub-script from GitHub at runtime so no local clone is needed on a bare machine.\n- This repo intentionally does **not** install opinionated apps (editors, browsers, games, etc.). It is a base layer — install whatever you want on top.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmwassim%2Fwindows-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmwassim%2Fwindows-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmwassim%2Fwindows-scripts/lists"}