无法将参数值从 PSObject 转换为 Byte[] (PowerShell)
作者:WindSwept 提问时间:5/4/2023
我正在尝试使用 powershell 将一些数据插入到 azure sql 数据库中。我是powershell初学者。我插入的数据来自 json 文件。 我尝试插入的数据是: (1)json 的 P...
Shell 问答列表
作者:WindSwept 提问时间:5/4/2023
我正在尝试使用 powershell 将一些数据插入到 azure sql 数据库中。我是powershell初学者。我插入的数据来自 json 文件。 我尝试插入的数据是: (1)json 的 P...
作者:Warlord213 提问时间:5/6/2023
我正在尝试匹配只有一个下划线的字符串。Match 目前正在寻找lastname_firstname和lastname_firstname_middleinitail。我只想返回lastname_fir...
作者:Ollie99th 提问时间:5/10/2023
我正在尝试为我们的 Elasticsearch 实例引入一些额外的运行状况监控,其中一部分是查看 Elasticsearch 服务是否正在运行。 其中一部分是返回服务器的主机名,然后是 Elasti...
作者:user18209625 提问时间:5/15/2023
我有一个包含数百个条目的大型 txt 文件,如下所示: AUT-NE;server1.test.root.local;10.164.202.0;30-254 AUT-DE;server2.test....
作者:Alyxander VanHelsing 提问时间:5/16/2023
多年来一直断断续续地使用 Powershell,但直到现在还没有真正进入那么多的自动化领域。我试图完成的是运行一个基于变量输入的语句。每个语句都会自行运行良好。测试的 ELSE 部分将在变量的输入下正...
作者:lemon chow 提问时间:5/16/2023
find "inputscan" -type f -exec sh -c 'file="$1"; folder=$(basename $(dirname "$file")); filename=$(b...
作者:lemon chow 提问时间:5/18/2023
我在input_scan里面有文件夹,但我需要 folder1 和 folder3,因为它们是 5.txt、1.txt 和 2.txt 的超级文件夹。我怎样才能得到这个?使用当前代码,我得到 5.tx...
作者:b1t 提问时间:5/17/2023
'user1','user2' | foreach-object { get-aduser -identity $_ -Properties * | select name,DisplayNa...
作者:Lamont 提问时间:5/19/2023
Powershell: 无法加载文件或程序集 System.Data,版本 =4.0.0.0。 Culture=neutral, PublicKeyToken=b77a5c561934e089' 或...
作者:Norbert Yuhas 提问时间:5/18/2023
我需要在 AD 中创建一个组,该组将包括在我们的 Exchange Server 上拥有邮寄地址的所有用户。 如何选择此类用户并将其添加到组中? 我想定期运行这样的脚本(例如,每周一次)以保持最新状...