<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>1. PowerShell常用命令</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>1. PowerShell常用命令</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell</link><pubDate>Wed, 14 Dec 2022 03:52:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:66bbf8b3-c0dd-4525-80ce-bcbde7613790</guid><dc:creator>Yongan.Fu</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell#comments</comments><description>Current Revision posted to 技术资料库 by Yongan.Fu on 12/14/2022 3:52:20 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;0. 如何启动PowerShell&lt;span&gt;：&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;在Windows的搜索窗口中直接输入PowerShell并回车就能启动PowerShell。如下图所示：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img style="max-height:106px;max-width:163px;" height="106" src="/resized-image/__size/326x212/__key/communityserver-wikis-components-files/00-00-00-04-10/pastedimage1670989954426v1.png" width="163" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;1. 查询当前PowerShell的版本&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入$PSVersionTable并回车。如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/420x240/__key/communityserver-wikis-components-files/00-00-00-04-10/pastedimage1659663833152v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;2. 获取PowerShell支持的所有命令&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;：在PowerShell命令提示符后输入gcm并回车能列出很长一长串当前PowerShell支持的命令。gcm是Get-Command的缩写。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;3. 查询某个PowerShell命令的帮助&lt;/strong&gt;&lt;/span&gt;：当我们对gcm列出的某个命令不熟悉时，可以在PowerShell命令提示符后输入help 命令名并回车就能列出该命令的说明。比如help gcm。要查看更详细的帮助，可以键入help gm -detailed或help gcm -Full。要想查看某个命令的例子，可以键入help gcm -Examples。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;4. 清空当前窗口内容&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入cls并回车能情况当前窗口内容。cls是Clear-Host的缩写。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;5. 退出PowerShell&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入exit并回车能关闭当前PowerShell窗口。&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>1. PowerShell常用命令</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell/revision/2</link><pubDate>Wed, 14 Dec 2022 03:41:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:66bbf8b3-c0dd-4525-80ce-bcbde7613790</guid><dc:creator>Yongan.Fu</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell#comments</comments><description>Revision 2 posted to 技术资料库 by Yongan.Fu on 12/14/2022 3:41:20 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;1. 查询当前PowerShell的版本&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入$PSVersionTable并回车。如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/420x240/__key/communityserver-wikis-components-files/00-00-00-04-10/pastedimage1659663833152v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;2. 获取PowerShell支持的所有命令&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;：在PowerShell命令提示符后输入gcm并回车能列出很长一长串当前PowerShell支持的命令。gcm是Get-Command的缩写。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;3. 查询某个PowerShell命令的帮助&lt;/strong&gt;&lt;/span&gt;：当我们对gcm列出的某个命令不熟悉时，可以在PowerShell命令提示符后输入help 命令名并回车就能列出该命令的说明。比如help gcm。要查看更详细的帮助，可以键入help gm -detailed或help gcm -Full。要想查看某个命令的例子，可以键入help gcm -Examples。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;4. 清空当前窗口内容&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入cls并回车能情况当前窗口内容。cls是Clear-Host的缩写。&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>1. PowerShell常用命令</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell/revision/1</link><pubDate>Fri, 05 Aug 2022 01:44:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:66bbf8b3-c0dd-4525-80ce-bcbde7613790</guid><dc:creator>Yongan.Fu</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/61679/1-powershell#comments</comments><description>Revision 1 posted to 技术资料库 by Yongan.Fu on 8/5/2022 1:44:09 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;1. 查询当前PowerShell的版本&lt;/strong&gt;&lt;/span&gt;：在PowerShell命令提示符后输入$PSVersionTable并回车。如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/420x240/__key/communityserver-wikis-components-files/00-00-00-04-10/pastedimage1659663833152v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>