下表概述了 Windows 远程管理(WinRM)客户端 Shell API 的核心功能。
| 核心函数 | 描述 |
|---|---|
| WSManCloseCommand | 关闭命令。 |
| WSManCloseOperation | 关闭作。 |
| WSManCloseSession | 关闭 WinRM 会话。 |
| WSManCloseShell | 关闭 shell 对象。 |
| WSManConnectShell | 连接到现有服务器会话。 |
| WSManConnectShellCommand | 连接到在 shell 中运行的现有命令。 |
| WSManCreateSession | 创建 WinRM 会话。 |
| WSManCreateShell | 创建 shell 对象。 |
| WSManCreateShellEx | 使用与 WSManCreateShell 函数相同的功能创建 shell 对象,并添加客户端指定的 shell ID。 |
| WSManDeinitialize | 取消初始化 WinRM 客户端堆栈。 |
| WSManDisconnectShell | 断开活动 shell 及其关联命令的网络连接。 |
| WSManInitialize | 初始化 WinRM。 |
| WSManReceiveShellOutput | 接收 shell 输出。 |
| WSManReconnectShell | 重新连接以前断开连接的 shell 会话。 若要重新连接 shell 会话的关联命令,请使用 WSManReconnectShellCommand。 |
| WSManReconnectShellCommand | 重新连接以前断开连接的命令。 |
| WSManRunShellCommand | 运行 shell 命令。 |
| WSManRunShellCommandEx | 提供与 WSManRunShellCommand 函数相同的功能,并添加了命令 ID 选项。 |
| WSManSendShellInput | 将输入发送到 shell。 |
| WSManSignalShell | 向 shell 发出信号。 |