{"id":18355866,"url":"https://github.com/anduin2017/reimage-windows","last_synced_at":"2025-04-06T12:32:08.102Z","repository":{"id":40198970,"uuid":"380518503","full_name":"Anduin2017/Reimage-Windows","owner":"Anduin2017","description":"These scripts to configure a ready-to-use Windows environment.","archived":false,"fork":false,"pushed_at":"2025-03-13T07:02:24.000Z","size":2074,"stargazers_count":24,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T18:40:52.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://win.aiurs.co","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anduin2017.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-06-26T14:14:06.000Z","updated_at":"2025-03-13T07:02:28.000Z","dependencies_parsed_at":"2023-11-22T10:29:16.501Z","dependency_job_id":"b774e6b0-a2ea-40f3-bf32-794ffbf7f8f4","html_url":"https://github.com/Anduin2017/Reimage-Windows","commit_stats":null,"previous_names":["anduin2017/configuration-script-win"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anduin2017%2FReimage-Windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anduin2017%2FReimage-Windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anduin2017%2FReimage-Windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anduin2017%2FReimage-Windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anduin2017","download_url":"https://codeload.github.com/Anduin2017/Reimage-Windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484417,"owners_count":20946385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-05T22:08:10.781Z","updated_at":"2025-04-06T12:32:06.492Z","avatar_url":"https://github.com/Anduin2017.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Re-image the Windows\n\n[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/anduin/reimage-windows.svg)](https://gitlab.aiursoft.cn/anduin/reimage-windows/-/commits/master?ref_type=heads)\n\nThese scripts configure a ready-to-use Windows environment.\n\n## Re-install Windows\n\nThe following command will re-install Windows 10\\11\\insider for you.\n\nRight-click the start button, and click `Windows PowerShell`(Admin)`.\n\n```powershell\niex ((New-Object System.Net.WebClient).DownloadString('https://gitlab.aiursoft.cn/anduin/reimage-windows/-/raw/master/Reimage.ps1'))\n```\n\n* It will ask you for the downloaded Windows ISO file. You can download it with any tool you like, and provide it the file name.\n* It will ask you for a clean disk drive. For example Disk `E:\\``. Provide it with any disk you like. (Except current OS drive)\n\n## Warning\n\nThis next part may NOT be designed for YOU! It is for my usage to config the newly installed Windows as a ready-to-use state.\n\nYou need to **fork** this repository and modify some configuration paths in the source code.\n\nFor example:\n\n* I copied my SSH private key file from my OneDrive. Which requires you to modify that logic.\n* I copied my Windows Terminal configuration file from my OneDrive. Which requires you to modify that logic.\n\n### One-key post config\n\nRight-click the start button, and click `Windows PowerShell`(Admin)`.\n\n```powershell\nRemove-Item \"$env:TEMP\\reimage-windows-master\\\" -Recurse -ErrorAction SilentlyContinue; $destinationPath = \"$env:TEMP\\reimage-windows-master.zip\"; Invoke-WebRequest -Uri \"https://gitlab.aiursoft.cn/anduin/reimage-windows/-/archive/master/reimage-windows-master.zip\" -OutFile $destinationPath -UseBasicParsing; Expand-Archive -Path $destinationPath -DestinationPath $env:TEMP; Remove-Item $destinationPath; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force; . \"$env:TEMP\\reimage-windows-master\\install.ps1\"\n```\n\nCaution: **DO NOT RUN** this in Windows Terminal!!! Instead, start a pure PowerShell with admin!\n\n### One-key test current environment\n\nOpen PowerShell and run:\n\n```powershell\n$(Invoke-WebRequest https://gitlab.aiursoft.cn/anduin/reimage-windows/-/raw/master/test_env.sh).Content | bash\n```\n\n### Ubuntu?\n\nSome of my machines are running Ubuntu. I also have a script to initialize Ubuntu environment.\n\n```bash\nbash -c \"$(wget -O- https://gitlab.aiursoft.cn/anduin/reimage-windows/-/raw/master/install.sh)\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanduin2017%2Freimage-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanduin2017%2Freimage-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanduin2017%2Freimage-windows/lists"}