腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
无法
识别
PSVersion
powershell
、
powershell-5.0
在安装powershell之后,我尝试运行PSVersionTable.
PSVersion
和PSVersionTable来检查版本,但得到以下错误: 在安装WMF-v5之前,我确实安装了WMF-4.0
浏览 16
提问于2017-06-20
得票数 2
回答已采纳
1
回答
Cloudberry powershell管理单元不再工作
powershell
、
cloudberry
即使管理单元显示为已注册:
PSVersion
: 2.0Powershell
无法
识别
命令:PS C:\> Get-PS
浏览 6
提问于2018-05-25
得票数 0
2
回答
检查powershell版本并根据版本运行函数
powershell
$
PSversion
= {$PSVersionTable.
PSVersion
| sort-object major | ForEach-Object {$_.major}} 2 {V2} 5 {V5} "You have Powershell Version 2"
浏览 20
提问于2017-12-21
得票数 4
回答已采纳
1
回答
在运行空间asp.net中添加Powershell模块
asp.net
、
.net
、
vb.net
、
powershell
、
runspace
术语“MailboxReport”不被
识别
为cmdlet、函数、脚本文件或可操作程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后再试一次。System32\WindowsPowerShell\v1.0\Modules\NewExchangeSession Microsoft.Exchange.Management.PowerShell.E2010
PSVersion
: 1.0描述: Exchange名称的管理任务: Microsoft.Exchange.Management.PowerShell.Setup
PSVersion<
浏览 5
提问于2014-04-28
得票数 0
回答已采纳
1
回答
无法
从
PSVersion
中提取$PSVersionTable字符串
string
、
powershell
{1.0, 2.0}PSRemotingProtocolVersion 2.1所以我试了一下,但这不是我想要的--+ "." + $PSVersionTable.
PSVersion
.Minor Cannot convert value
浏览 2
提问于2020-11-17
得票数 0
回答已采纳
1
回答
PowerShell和Winrm
powershell
嗨,我正在搜索所有的power shell版本和对应的winrm协议版本,例如: power shell 5.0 work with winrm 2.0我需要知道哪个版本的power shell使用哪个版本的winrm。如果你知道,也请参考我的网站,在那里你找到了答案。谢谢
浏览 2
提问于2015-08-12
得票数 0
1
回答
如何在Powershell 5中执行Powershell 6(核心)中的命令?
powershell
我希望在Powershell 5中运行以下命令,但使其在Powershell 6中执行: $PSVersionTable.
PSVersion
.Major 如何做到这一点?我得到了这个: pwsh -command "$PSVersionTable.
PSVersion
.Major" System.Collections.Hashtable.
PSVersion
.Major: The term 'System.Collections.Hashtable.
PSVersion
.Major'
浏览 15
提问于2019-05-22
得票数 1
回答已采纳
1
回答
为什么Windows 7不
识别
PowerShell PowerShell和cmd的UNC路径?
powershell
、
path
、
filesystems
、
powershell-core
PowerShell似乎不
识别
\\?\符号。为什么不行?28 Dir(s) 81,919,647,744 bytes freePS C:\Users> $PSVersionTable.
PSVersion
.ToStringPS C:\Users>PS C:\Users> $PSVersionTable.
PSVersion
.ToString()PS C:\Users
浏览 2
提问于2021-08-16
得票数 3
回答已采纳
1
回答
有没有办法在pester中模拟powershell的$PSVersionTable变量?
powershell
、
pester
] { exit 1 $
PSVersion
= $PSVersionTable.
PSVersion
.Major echo "Current version is not compatibletesting" { It "Check Powershell Ve
浏览 0
提问于2018-03-22
得票数 3
回答已采纳
1
回答
尽管已安装SQL Server,但未安装SQL Server PowerShell管理单元
sql-server
、
powershell
get-pssnapin -registered输出:Name : DefinitionSnapIn
PSVersion
: 2.0 Description : Definition SnapIn Name : DynoPortalSnapI
浏览 0
提问于2015-07-22
得票数 5
回答已采纳
2
回答
显示计算机名称、powershell版本和远程处理协议。
powershell
\computers) # this only gives me
浏览 3
提问于2015-09-29
得票数 0
回答已采纳
1
回答
从PowerShell内引用C#定义的结构时出现管道错误
c#
、
powershell
( $($PSVersionTable.
PSVersion
.Minor),$($PSVersionTable.
PSVersion
.Build), );Version( $($PSVersio
浏览 4
提问于2020-09-11
得票数 0
回答已采纳
1
回答
什么PowerShell版本引入了给定的cmdlet?
powershell
、
powershell-cmdlet
我把#Requires -Version放在脚本的顶部,但需要弄清楚我需要什么版本。我希望询问PowerShell的哪个版本引入了我调用的每个cmdlet。但我在其中一个cmdlet的Get-Help -verbose输出中没有看到这一点。我没有找到一个规范的网页列表。
浏览 1
提问于2016-03-23
得票数 3
回答已采纳
1
回答
在"Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage“会话中找不到的类型: PowerShell
powershell
、
types
:
无法
找到InvalidOperation类型 Get-AppxPackage -PackageTypeFilter Main如何使PowerShell会话在不运行Get-AppxPackage的情况下
识别
此类型环境数据:---
浏览 5
提问于2020-09-01
得票数 0
2
回答
我可以添加一个列来显示操作系统和PS版本吗?
powershell
Invoke-Command -ComputerName $wks -Credential $cred -Scriptblock {$PSVersionTable.
PSVersion
} -ErrorActionSilentlyContinue Invoke-Command -ComputerName $wks -Credential $cred -Scriptblock {$PSVersionTable.
PSVersion
浏览 3
提问于2021-02-19
得票数 1
2
回答
术语“Install-Module”不被
识别
为cmdlet的名称。
powershell
、
posh-git
在这样做的时候我跑了:错误: Install-Module是一个副词吗?我如何运行这个命令?
浏览 0
提问于2015-04-23
得票数 23
1
回答
使用通配符记录更新DNS -使用服务器/ GSS验证错误的TSIG错误
domain-name-system
、
domain
、
subdomain
、
dns-zone
、
nsupdate
见截图- DNS管理器 不幸的是,这是I1)
无法
自动化的GUI解决方案,它正在Linux上运行大多数基础设施。正因为如此,我正试图在nsupdate中实现同样的目标。
浏览 0
提问于2019-04-23
得票数 -1
回答已采纳
1
回答
如何从CMake中检测PowerShell版本?
powershell
、
cmake
我正在编写一个程序,并使用CMake为Windows target创建构建文件。我的程序使用popen()命令调用更高版本的PowerShell,我想在CMake中检测在运行CMake时系统上运行的是什么版本的PowerShell。
浏览 42
提问于2019-12-01
得票数 0
2
回答
如何在powershell 7.2.1中从ForEach对象返回列表
powershell
$color = "Gray"$Minor = ($PSVersionTable.
PSVersion
).MinorOfflinePc pause$color = "Gray"$Minor = ($PSVersionTable.
浏览 14
提问于2022-08-13
得票数 1
回答已采纳
2
回答
无法
获取其他域和PS版本的成员
powershell
、
active-directory
我知道返回的许多服务器都没有
PSVersion
5。function Get-
PSVersion
{ ForEach-Object { $ps = Get-
PSVersion
IPAdd
浏览 17
提问于2016-08-09
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云点播
活动推荐
运营活动
广告
关闭
领券