当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 启动 Windows PowerShell

作者:精品下载站 日期:2024-12-14 02:59:19 浏览:12 分类:玩电脑

启动 Windows PowerShell


Windows PowerShell 是嵌入到多个主机中的脚本引擎。您将启动的最常见主机是交互式命令行 powershell.exe 和交互式脚本环境 powershell_ise.exe

PowerShell 已更名为二进制文件

PowerShell 版本 6 及更高版本使用 .NET Core。支持的版本可在 Windows、macOS 和 Linux 上使用。

从 PowerShell 6 开始,Windows 的 PowerShell 二进制文件被重命名为 pwsh.exe,macOS 和 Linux 的 PowerShell 二进制文件被重命名为 pwsh。您可以使用 pwsh-preview 启动 PowerShell 预览版本。有关详细信息,请参阅关于 pwsh。

要查找 PowerShell 7 的 cmdlet 参考和安装文档,请使用以下链接:

Cmdlet reference

PowerShell 模块浏览器

Windows installation

在 Windows 上安装 PowerShell

macOS installation

在 macOS 上安装 PowerShell

Linux installation

在 Linux 上安装 PowerShell

要查看其他 PowerShell 版本的内容,请参阅如何使用 PowerShell 文档。

从开始菜单

  • 打开开始菜单,键入Windows PowerShell,选择Windows PowerShell,然后选择打开

在命令提示符下

在 Windows Command shell、Windows PowerShell 或 Windows PowerShell ISE 中,要启动 Windows PowerShell,请键入:PowerShell

您还可以使用powershell.exe程序的参数来自定义会话。有关详细信息,请参阅 PowerShell.exe 命令行帮助。

具有管理权限(以管理员身份运行)

打开开始菜单,键入Windows PowerShell,选择Windows PowerShell,然后选择以管理员身份运行

如何在早期版本的 Windows 上启动 Windows PowerShell ISE

使用以下任一方法启动 Windows PowerShell ISE。

从开始菜单

  • 打开开始菜单,键入ISE,选择Windows PowerShell ISE,然后选择打开

在命令提示符下

在 Windows Command shell、Windows PowerShell 或 Windows PowerShell ISE 中,要启动 Windows PowerShell,请键入:PowerShell_ISE。在 Windows PowerShell 中,您可以使用别名 ise

具有管理权限(以管理员身份运行)

单击开始,键入ISE,右键单击Windows PowerShell ISE,然后单击以管理员身份运行

启动 32 位版本的 Windows PowerShell

使用 64 位计算机 Windows PowerShell (x86) 时,除了 64 位版本之外,还会安装 32 位版本的 Windows PowerShell。运行 Windows PowerShell 时,默认运行 64 位版本。

不过,您有时可能需要运行 Windows PowerShell (x86),例如当您使用需要 32 位版本的模块或远程连接到 32 位计算机时。

要启动 32 位版本的 Windows PowerShell,请使用以下任一过程。

  • 单击开始,键入Windows PowerShell,选择Windows PowerShell (x86),然后选择打开

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯