<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>WindowsonDocs</title><link>https://hiraethecho.github.io/docs/tags/windows/</link><description>Recent contentinWindowsonDocs</description><generator>Hugo --0.152.2</generator><language>en</language><managingEditor>wyz2016zxc@outlook.com(Hiraeth)</managingEditor><webMaster>wyz2016zxc@outlook.com(Hiraeth)</webMaster><lastBuildDate>Mon, 16 Mar 2026 15:39:39 +0800</lastBuildDate><atom:link href="https://hiraethecho.github.io/docs/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>Windows重装指南</title><link>https://hiraethecho.github.io/docs/dev/rewindows/</link><pubDate>Sat, 18 Jan 2025 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://hiraethecho.github.io/docs/dev/rewindows/</guid><description>重装和初始化windows</description><content:encoded><![CDATA[<h1 id="windows重装指南">
  <a class="anchor inpage" href="#windows%e9%87%8d%e8%a3%85%e6%8c%87%e5%8d%97">#</a>Windows重装指南</h1>
<p>记录一下重装或者第一次安装windows的一些注意事项。</p>
<h2 id="重装">
  <a class="anchor inpage" href="#%e9%87%8d%e8%a3%85">##</a>重装</h2>
<p>按<kbd>windows</kbd>然后按住<kbd>shift</kbd>点击重启，这样重启后会进入恢复模式（之类的），这里可以选择重装系统。或者在设置中的系统恢复部分。<br>
重装系统只重装C盘，其他盘是不动的。但是应用安装在其他盘的时候会有问题。</p>
<h2 id="安装">
  <a class="anchor inpage" href="#%e5%ae%89%e8%a3%85">##</a>安装</h2>
<p>window11有个莫名其妙的设定，不能在没有网络的时候安装，必须登陆微软账户，很神经，但是可以绕开。<br>
在安装界面按<kbd>Shift+F10</kbd>调出命令行，然后输入</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">oobe\bypassnro</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>之后会重新启动安装程序，可以选择无网络连接。</p>
<h2 id="设置">
  <a class="anchor inpage" href="#%e8%ae%be%e7%bd%ae">##</a>设置</h2>
<h3 id="用户文件夹">
  <a class="anchor inpage" href="#%e7%94%a8%e6%88%b7%e6%96%87%e4%bb%b6%e5%a4%b9">###</a>用户文件夹</h3>
<p>在用户目录<code>C:\Users\_username_</code>下有一些用户目录，移动这些目录需要通过右键菜单的<code>属性</code></p>
<h3 id="设置-1">
  <a class="anchor inpage" href="#%e8%ae%be%e7%bd%ae-1">###</a>设置</h3>
<h3 id="其他">
  <a class="anchor inpage" href="#%e5%85%b6%e4%bb%96">###</a>其他</h3>
<p>电源管理</p>
<p>pagefiles</p>
<h2 id="软件源">
  <a class="anchor inpage" href="#%e8%bd%af%e4%bb%b6%e6%ba%90">##</a>软件源</h2>
<p>首先从microsoft store安装，其次用scoop，最后用msi安装。</p>
<h3 id="应用商店">
  <a class="anchor inpage" href="#%e5%ba%94%e7%94%a8%e5%95%86%e5%ba%97">###</a>应用商店</h3>
<h3 id="scoop">
  <a class="anchor inpage" href="#scoop">###</a>scoop</h3>
<p>权限：</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>更改环境变量以修改<code>scoop</code>安装位置</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">$env:SCOOP=&#39;D:\Applications\Scoop&#39;
[Environment]::SetEnvironmentVariable(&#39;SCOOP&#39;, $env:SCOOP, &#39;User&#39;)</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>安装<code>scoop </code></p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Invoke-Expression (New-Object System.Net.WebClient).DownloadString(&#39;https://get.scoop.sh&#39;)</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>或者</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">iwr -useb get.scoop.sh | iex</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><h2 id="软件">
  <a class="anchor inpage" href="#%e8%bd%af%e4%bb%b6">##</a>软件</h2>
<h2 id="清理">
  <a class="anchor inpage" href="#%e6%b8%85%e7%90%86">##</a>清理</h2>
<h3 id="win-sxs">
  <a class="anchor inpage" href="#win-sxs">###</a>win SxS</h3>
<h3 id="应用">
  <a class="anchor inpage" href="#%e5%ba%94%e7%94%a8">###</a>应用</h3>
<p>清理应用商店，卸载预装软件</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Get-AppxPackage -All 　　　　　　　　　　　　　　　　　　　/* 获取Win10以上系统所有预装软件 */
Get-AppxPackage -All {预装软件全名} | Remove-AppxPackage　　/* 管道方式卸载Win10以上系统预装软件 */
Remove-AppxPackage {预装软件全名} 　　　　　　　　　　　　/* 常规卸载Win10以上系统预装软件 */
Get-AppxPackage -All | Select-Object Name, PackageFullName　　　/*（推荐）获取Win10以上系统所有预装软件 */
Remove-AppxPackage -Package &#34;PackageFullName&#34;　　　　　　/*（推荐）常规卸载Win10以上系统预装软件 */
Get-AppxPackage *BingWeather* | Remove-AppxPackage　　　　/*卸载单个软件
Get-AppXPackage | Remove-AppxPackage　　　　　　　　　　/*卸载所有软件命令</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>图形化选择</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Get-AppxPackage | Out-GridView -Passthru | Remove-AppXPackage -AllUsers</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>删除某些</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Get-AppxProvisionedPackage -Online | where-object {$_.packagename -like &#34;xbox&#34;} | Remove-AppxProvisionedPackage -Online</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script><p>去除某个分区的<code>WindowsApps</code>文件夹</p>
<details open>
    <summary>TEXT</summary><pre
        class="codeblock"
      ><code class="language-" data-lang="">Remove-AppxVolume -Volume X:\</code><button onclick="copyCode(this)" class="copybtn">copy</button></pre></details>

  <script>
    function copyCode(btn) {
      const code = btn.previousElementSibling.textContent.trim();
      navigator.clipboard.writeText(code).then(() => {
        btn.innerText = "copied";
        setTimeout(() => (btn.innerText = "copy"), 2000);
      });
    }
  </script>]]></content:encoded></item></channel></rss>