gpt4 book ai didi

powershell - Windows 7 SP1 上的 Powershell v4 中缺少 CMDLETS

转载 作者:行者123 更新时间:2023-12-03 00:02:36 26 4
gpt4 key购买 nike

我已经在我的 Windows 7 Enterprise 计算机上安装了 .NET 4.5.1,然后是 WMF 4.0,其唯一目的是在 PoSH v4 中使用 PrintManagement cmdlet,但它们似乎丢失了。
$PSVersionTable 返回:

Name                           Value
---- -----
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.18408
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2

我在这里错过了什么吗?

最佳答案

有许多仅在 Windows 8+ 上可用的 cmdlet(包括 PrintManagement cmdlet)——它们是操作系统的一部分,而不是 PowerShell 本身。这令人沮丧,但很多时候,当人们提到 PowerShell 版本 3 或 4 中可用的新 cmdlet 时,他们实际上是在谈论 Windows 8/8.1 中可用的新模块。

关于powershell - Windows 7 SP1 上的 Powershell v4 中缺少 CMDLETS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20270117/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com