什么是 Windows PowerShell?17 Mar 2025 | 4 分钟阅读 类似的问题
答案 PowerShell 是一个由 Microsoft 开发的开源、面向对象、跨平台、任务自动化和配置管理框架。它由命令行 shell 和脚本语言组成,并且是一种比命令提示符更强大的工具。 它由 Microsoft 开发,旨在帮助 IT 专业人员配置系统并自动执行管理任务。 当它由 Microsoft 开发时,由于它对 Windows 操作系统的强大功能和控制能力,它本应取代命令提示符。管理任务由 PowerShell 中的 cmdlet 执行。 它还方便管理员完全访问 COM、WMI,并在本地和远程 Windows 系统上执行管理任务。 PowerShell 的历史2006 年 11 月,PowerShell 的第一个版本发布,适用于 Windows XP、Windows Server 2003 和 Windows Vista。PowerShell 的最新版本是 PowerShell 7,它是 PowerShell Core 6.x 产品以及 Windows PowerShell 5.1 的产品替代品。 PowerShell 5.1 是其最后一个支持的版本,适用于 Windows Server 2008 R2、Windows Server 2012 和 Windows Server 2012 R2、Windows 7 Service Pack 1 和 Windows 8.1。 为什么它被称为 Windows PowerShell?Microsoft 开发了 PowerShell,最初仅与 Windows 一起提供。 2016 年,Microsoft 将其开源,并在 Linux 和 macOS 上公开提供。 Windows PowerShell 使用和执行四种类型的命令
Windows PowerShell 7 的主要功能Microsoft 在每个新版本和更新中都扩展了 Windows PowerShell 的功能。 在这里,我们讨论其最新版本 PowerShell 7 中添加的功能。PowerShell 7.0 引入了大量新功能,例如
在 Windows 中哪里可以找到 PowerShell?让我们看看如何在 Windows 中打开 PowerShell(启动 powerShell)。 按照下面给出的步骤
![]()
![]()
![]()
![]() 使用“运行”窗口启动 PowerShell这是在 Windows PC 中启动 PowerShell 的最简单方法之一。 它可用于所有 Windows 版本。 使用以下步骤通过此方法运行 PowerShell
![]()
![]() 从开始菜单启动 Windows PowerShell我们还可以从 Windows 中的“开始”菜单启动 Windows PowerShell。 此方法与 Windows 7 和 Windows 10 兼容。它也可以与 Windows 8.1 中的“开始”屏幕一起使用。 按照下面给出的步骤使用此方法启动 PowerShell
![]()
![]() 使用其可执行文件启动 PowerShell要通过使用其可执行文件启动 PowerShell,如果您使用的是 Windows 10 或 Windows 8.1,请打开文件资源管理器,或者使用 Windows 7,请打开 Windows 资源管理器。 对于 32 位版本的 Windows 转到:"C:\Windows\System32\WindowsPowerShell\v1.0\." 在这里,您将在 32 位上找到 powershell.exe 文件。 ![]() 对于 64 位版本的 Windows 转到:"C:\Windows\SysWOW64\WindowsPowerShell\v1.0\." 在这里,您将在 64 位上找到 powershell.exe 文件。 ![]() 从命令提示符打开 PowerShell请按照以下步骤操作
![]()
![]() 注意:如果您想通过使用此方法以管理员身份启动 PowerShell,您应该首先以管理员身份打开命令提示符。![]() |
我们请求您订阅我们的新闻通讯以获取最新更新。