腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
Windows
Powershell
SDK
和
System.Management.Automation.PSObject
、
、
、
我在
Windows
Server ( 2008,我猜是)SP2 64位操作系统上的Visual Studio2008中编译的C sharp程序中有一个构建错误。它说明“
System.Management.Automation.PSObject
”是在未被引用的程序集中定义的。我在MSDN中做了一些搜索,我发现这似乎是
Windows
Power Shell
SDK
的一部分。 问题是我已经有了
Windows
Powershell
。如果我需要下载额外的东西(即
SDK
),我应该到
浏览 1
提问于2009-12-08
得票数 9
回答已采纳
1
回答
powershell
组对象并使用新的标头创建csv
在
Windows
Powershell
中,如何更改执行此命令的csv输出格式:$today = (Get-Date).Date "System.Collections.ArrayList","1085","System.Collections.ObjectModel.Collection`1[
System.Management.Auto
浏览 6
提问于2014-09-14
得票数 0
回答已采纳
2
回答
ScriptBlock为什么要将哈希表转换为集合?如何避免?
、
、
考虑下面的
PowerShell
脚本:function foo($x) { $x }$t3 = {param([HashtableSystem.Collections.Hashtablefunction variable Invoke System.Collecti
浏览 11
提问于2020-05-26
得票数 4
1
回答
Powershell
.Invoke()结果为0。
、
我尝试在
windows
窗体应用程序中运行以下
PowerShell
命令。但我的结果总是零。(result.Count == 0)。我已经尝试在
powershell
ISE中运行该命令,它工作得很好。string connectionUri = "https://outlook.office365.com/
powershell
-liveid/"; var passWord = new SecureString
powershell
=
Powe
浏览 0
提问于2018-11-09
得票数 0
1
回答
Powershell
脚本独立运行,但在作为可执行文件运行时出现“方法调用失败”错误。
、
、
下面是我的
powershell
脚本片段,用于获取所有已安装的应用程序: #invoking the native
powershell
NonInteractive -NoProfile -Command {Get-Childitem "HKLM://SOFTWARE//Microsoft//
Windows
//CurrentVersion系统上进行测试时,如果直接从
po
浏览 2
提问于2020-05-31
得票数 0
1
回答
如果没有显式的强制转换,对象将被包装在PSObject中。
、
、
、
](new-object Microsoft.Xrm.
Sdk
.EntityReference("businessunit", [System.Guid]::NewGuid()))当我想序列化它时,
PowerShell
会发出抱怨:Exception calling "WriteObject"with "2" argument(s): "Type &
浏览 7
提问于2014-01-27
得票数 4
回答已采纳
1
回答
为什么我不能忽略使用
PowerShell
调用的返回值?
当我从
Powershell
的外部类型调用它时:$queryProcessor = New-Object我收到以下错误消息:'
System.Management.Automation.PSObject
对于任何东西,我都不需
浏览 0
提问于2014-03-03
得票数 6
回答已采纳
1
回答
在C#中接收来自Power脚本的输出,并使用它进一步指导我的C#代码
、
我试图在C#中创建一个
Windows
应用程序来运行Power命令,这些命令将对Active Directory计算机对象进行更改。我试过使用其他帮助的方法 我要么得到计算机名,要么得到计算机名
和
System.Collections.ObjectModel.Collection``1[
System.Management.Automation.PSObject
computeristags[i] + " -Properties Description | Select-Object -ExpandProperty Description
浏览 4
提问于2019-11-12
得票数 1
回答已采纳
2
回答
PowerShell
型加速器: PSObject与PSCustomObject
、
、
、
、
在
PowerShell
v3.0中引入了PSCustomObject。它就像PSObject,但更好。) | where key -Like ps*object --- -----并发现这两个引用相同的PSObject类-这意味着使用加速器可以
浏览 5
提问于2016-03-09
得票数 15
回答已采纳
1
回答
无法绑定到
Powershell
中的PSCore
我已经在
Windows
上安装了
Powershell
Core。Add-Type -Path PSCore.dll 但我得到了路径错误信息。我怎么才能找到这条路?更新:我安装了
Powershell
核心,但仍然说Add:无法将参数'Path‘绑定到目标。
浏览 8
提问于2022-07-23
得票数 0
回答已采纳
2
回答
错误:设置VM标志失败:无法识别的标志: disable-dart-dev
、
、
、
、
studio中创建或克隆flutter项目时,它显示“错误创建项目设置VM标志失败:无法识别的标志:禁用-dart-dev” 我使用的是Android Studio 4.0版,我之前做过几个android
和
flutter在克隆项目后,我尝试了"Pub get“命令
和
"get dependencies”命令,它们给出了无法识别的标志错误。退出代码: 255,stderr:设置VM标志失败:无法识别的标志:禁用-dart-dev“ 作为参考,我已经更新了flutter(1.17.2)
和
dart插件的版本。
浏览 67
提问于2020-06-15
得票数 3
回答已采纳
1
回答
如何在中支持不同的
Powershell
版本
、
、
我们公司有一些带有旧版本
Powershell
的计算机,因为并不是所有的机器都因为依赖关系而被允许接收某些更新。我在使用
Powershell
5.1的计算机上使用nuget扩展Microsoft.
PowerShell
.5.1.ReferenceAssemblies,在我的C# CmdLet项目中在带有
Powershell
5.0的计算机上使用Microsoft.
PowerShell
.5.0.ReferenceAssemblies,但是我不能同时使用两者。如何在我的C# CmdLet项目中支持多个
Pow
浏览 0
提问于2020-08-08
得票数 1
回答已采纳
1
回答
新定义的环境变量不能在WSL2之外看到?
、
、
、
在WSL2中,使用ubuntu发行版,我在/etc/profile中定义了一个新变量(我还尝试了~/..bashrc
和
/etc/环境)然后是source /etc/profilepublic class
浏览 5
提问于2021-08-27
得票数 2
回答已采纳
1
回答
为什么我不能在
powershell
中添加一个带有“new”命令的类型?
我对
windows
powershell
很陌生。今天,我尝试了‘新条目’命令,它应该让met选择一个路径
和
一个类型。
浏览 1
提问于2019-06-11
得票数 1
回答已采纳
2
回答
使用
PowerShell
读取C#中的Office 365组成员
、
、
、
powershell
=
PowerShell
.Create()) PSCommand command = new PSCommand();
powershell
.Runspace = runspace; Collection<
System.Management.Automation.PSObject
> result =
powershell
.Invoke
浏览 2
提问于2017-04-20
得票数 0
回答已采纳
2
回答
服务结构/Jenkins集成问题
、
、
、
我正在尝试使用Jenkins
和
ServiceFabric
PowerShell
扩展自动部署到。Jenkins ServiceFabric插件在我的情况下不是一个好的选择,因为缺乏对部署过程的控制
和
灵活性。我遇到了以下问题- Jenkins无法识别SF
PowerShell
cmdlet Connect-ServiceFabric群集:术语“Connect-ServiceFabric群集”不被识别为cmdletServiceFabric设置是正确的,因为当我从
PowerShell
本地运行脚本时,tt的工作
浏览 0
提问于2018-02-05
得票数 6
2
回答
如何在Docker中运行.NET Core3.1.3 x86应用程序
、
、
、
、
dotnet.zip https://dotnetcli.azureedge.net/dotnet/
Sdk
/$dotnet_
sdk
_version/dotnet-
sdk
-$dotnet_
sdk
_version-win-x86$
powershell
_version.nupkg https://pwshtool.blob.core.
windows
.net/tool/$
powershel
浏览 1
提问于2020-04-28
得票数 1
1
回答
Powershell
SDK
3
、
、
怎样才能让
Powershell
3
SDK
函数在
Windows
、Vista
和
7下工作,而不需要用户安装
Powershell
3呢?大会: system.management.automation.dllImport-Module NetConnection
浏览 3
提问于2014-11-20
得票数 1
回答已采纳
1
回答
无法在
Powershell
EC2上运行
Powershell
用户数据脚本
、
、
、
我正在使用Javascript
SDK
来运行
Windows
Server2019 EC2实例-我正在使用的AMI是一个自定义的AMI。通过
SDK
,我输入以下用户数据: <
powershell
></
powershell
> <persi
浏览 7
提问于2020-05-03
得票数 0
回答已采纳
2
回答
如何从
PowerShell
3 C#应用程序中托管C#5
、
、
、
在我的例子中,我需要能够调用
PowerShell
5.1.NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0-
windows
10.0.19041Microsoft.
PowerShell
.
SDK
-仅适用于
PowerShell
7,而不是
PowerShell
5.1 PowerShellLibrary.
浏览 22
提问于2022-02-14
得票数 2
回答已采纳
点击加载更多
相关
资讯
Windows PowerShell 工具
Windows PowerShell进阶PSBASE and more
Windows PowerShell入门总结
Windows PowerShell进阶PSCustomObject
Windows PowerShell进阶Excel ComObject
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券