mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-18 05:01:21 +08:00
doc: update docs/github-copilot.md 8ae69f2386
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
<title>PowerShell 备忘清单
|
||||
& powershell cheatsheet & Quick Reference</title>
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
<meta description="一种强大的命令行界面和脚本语言,主要用于自动化任务和配置管理,特别适合系统管理员和 IT 专业人士。以下是 PowerShell 常用命令的备忘清单,可帮助快速参考常用操作。
|
||||
<meta description="PowerShell 用于自动化任务和配置管理的常用命令的备忘清单,可帮助系统管理员快速参考常用操作。
|
||||
|
||||
常用操作,为开发人员分享快速参考备忘单。">
|
||||
<meta keywords="powershell,reference,Quick,Reference,cheatsheet,cheat,sheet">
|
||||
@ -34,25 +34,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" class="dark" height="1em" width="1em">
|
||||
<path d="M12 11.807A9.002 9.002 0 0 1 10.049 2a9.942 9.942 0 0 0-5.12 2.735c-3.905 3.905-3.905 10.237 0 14.142 3.906 3.906 10.237 3.905 14.143 0a9.946 9.946 0 0 0 2.735-5.119A9.003 9.003 0 0 1 12 11.807z"></path>
|
||||
</svg>
|
||||
</button><script src="../js/dark.js?v=1.8.0"></script><a href="https://github.com/jaywcjlove/reference" class="" target="__blank"><svg viewBox="0 0 16 16" fill="currentColor" height="1em" width="1em"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></a></div></div></nav><div class="wrap h1body-exist max-container"><header class="wrap-header h1wrap"><h1 id="powershell-备忘清单"><svg viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" height="1em" width="1em">
|
||||
<rect width="256" height="256" rx="60" fill="#242938"></rect>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.407 203.248a8.242 8.242 0 0 1-6.627-3.021 8.81 8.81 0 0 1-1.5-7.512L58.252 61.787a12.855 12.855 0 0 1 12.004-9.784h149.338a8.259 8.259 0 0 1 6.627 3.021 8.815 8.815 0 0 1 1.5 7.513l-29.993 130.935a12.855 12.855 0 0 1-12.005 9.783H36.406v-.007Z" fill="url(#a)"></path>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.256 53.686h149.338a6.516 6.516 0 0 1 5.445 2.553 6.52 6.52 0 0 1 1.039 5.924L196.085 193.09a11.252 11.252 0 0 1-10.362 8.476H36.406a6.51 6.51 0 0 1-5.445-2.553 6.52 6.52 0 0 1-1.04-5.923L59.916 62.163a11.24 11.24 0 0 1 10.34-8.477Z" fill="url(#b)"></path>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M128.286 167.219h36.32a7.986 7.986 0 0 1 7.647 7.977 7.985 7.985 0 0 1-7.647 7.977h-36.32a7.986 7.986 0 0 1-7.647-7.977 7.985 7.985 0 0 1 7.647-7.977Zm23.56-35.463a12.576 12.576 0 0 1-4.221 4.285l-67.406 48.382a8.739 8.739 0 0 1-11.835-2.186 8.74 8.74 0 0 1 1.566-11.932l60.786-44.019v-.9L92.545 84.781a8.74 8.74 0 0 1 12.725-11.94l45.833 48.753a8.329 8.329 0 0 1 .743 10.162Z" fill="#2C5591"></path>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M150.138 130.071a12.5 12.5 0 0 1-4.213 4.285L78.54 182.745a8.748 8.748 0 0 1-10.276-14.119l60.793-44.018v-.907L90.866 83.074a8.741 8.741 0 0 1 12.733-11.94l45.825 48.753a8.295 8.295 0 0 1 .714 10.184Zm-22.851 36.207h36.32a7.565 7.565 0 0 1 7.563 7.562 7.564 7.564 0 0 1-7.563 7.563h-36.32a7.564 7.564 0 0 1 0-15.125Z" fill="#fff"></path>
|
||||
<defs>
|
||||
<linearGradient id="a" x1="180.31" y1="174.355" x2="65.586" y2="71.877" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#5391FE"></stop>
|
||||
<stop offset="1" stop-color="#3E6DBF"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient id="b" x1="64.443" y1="70.511" x2="177.996" y2="172.56" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#5391FE"></stop>
|
||||
<stop offset="1" stop-color="#3E6DBF"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</button><script src="../js/dark.js?v=1.8.0"></script><a href="https://github.com/jaywcjlove/reference" class="" target="__blank"><svg viewBox="0 0 16 16" fill="currentColor" height="1em" width="1em"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></a></div></div></nav><div class="wrap h1body-exist max-container"><header class="wrap-header h1wrap"><h1 id="powershell-备忘清单"><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" height="1em" width="1em">
|
||||
<path d="m64 10.5-7.11 42a4.64 4.64 0 0 1-4.62 3.5H4.44C2.24 56 .72 54.43 1 52.5l7.11-42a3.93 3.93 0 0 1 1.3-2.19A5 5 0 0 1 12.73 7h47.83a3.25 3.25 0 0 1 3.35 2.32A2.73 2.73 0 0 1 64 10.5z" fill="#0078d7"></path>
|
||||
<path fill="#fff" d="M17.72 49.6a2.43 2.43 0 0 1-1.45-4.38l20.54-15.11L22 16.18a2.42 2.42 0 0 1-.1-3.43 2.45 2.45 0 0 1 3.45-.1l17 15.92a2.42 2.42 0 0 1-.22 3.72L19.17 49.13a2.44 2.44 0 0 1-1.45.47zm26.87.4H33.41a2.5 2.5 0 0 1 0-5h11.18a2.5 2.5 0 0 1 0 5z"></path>
|
||||
<path fill="#fff" d="m63.91 9.32-7.06 42.27a4 4 0 0 1-.95 2C44.76 42.64 21.52 19.89 9.41 8.31A5 5 0 0 1 12.73 7h47.83a3.25 3.25 0 0 1 3.35 2.32z" opacity=".25"></path>
|
||||
</svg>
|
||||
<a aria-hidden="true" tabindex="-1" href="#powershell-备忘清单"><span class="icon icon-link"></span></a>PowerShell 备忘清单</h1><div class="wrap-body">
|
||||
<p>一种强大的命令行界面和脚本语言,主要用于自动化任务和配置管理,特别适合系统管理员和 IT 专业人士。以下是 PowerShell 常用命令的备忘清单,可帮助快速参考常用操作。</p>
|
||||
<a aria-hidden="true" tabindex="-1" href="#powershell-备忘清单"><span class="icon icon-link"></span></a>PowerShell 备忘清单</h1><div class="wrap-body">
|
||||
<p>PowerShell 用于自动化任务和配置管理的常用命令的备忘清单,可帮助系统管理员快速参考常用操作。</p>
|
||||
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
|
||||
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#常用操作">常用操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#辅助命令">辅助命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#对象操作">对象操作</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#文件系统">文件系统</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#系统管理">系统管理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#获取信息">获取信息</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#命名空间--类">命名空间 & 类</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#网络管理">网络管理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#用户和组管理">用户和组管理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#安全性和权限">安全性和权限</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#注册表管理">注册表管理</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#脚本">脚本</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#变量">变量</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#运算符">运算符</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#structure">Structure</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#输入输出操作">输入输出操作</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#流控制">流控制</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#函数--模块">函数 / 模块</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#示例-1">示例 1</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#示例-2">示例 2</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#模块">模块</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#注意">注意</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#参考">参考</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="常用操作"><a aria-hidden="true" tabindex="-1" href="#常用操作"><span class="icon icon-link"></span></a>常用操作</h2><div class="wrap-body">
|
||||
|
Reference in New Issue
Block a user