且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

powershell

    我有大约 13000 个以 XML 格式格式化的日志文件,我需要将它们全部转换为电子表格\csv 文件.I have some 13000 log files that are formatted in XML format and I need to......

    我正在 PowerShell 中进行字符串替换.我无法控制被替换的字符串,但我可以通过这种方式重现我遇到的问题:I am doing a string replacement in PowerShell. I have no control over ......

    是否可以将 PowerShell 中的变量插入 XML 格式?前任.我已经声明$SIDadm = sidadm 作为全局变量,我希望将其插入到下面的 xml 代码中Is it possible to insert a variable from Pow......

    我只是在 StackOverflow 上找到有关如何更改 XML 元素的属性值的内容.I'm only finding stuff on how to change the attribute values of a XML element here ......

    我有一个 XML 文件,我想从下面的文件中删除那些十六进制字符错误是无效字符:I have an XML Files and I want to remove those Hexadecimal Characters Errors from the f......

    是否可以检查字符串是否以字符串开头?Is there a way to check if a string starts with a string?我们正在从 AD 用户中检查组成员身份.我们的广告组如下所示:S_G_share1_W We are ......

    我正在尝试将一个带有与号的字符串的变量传递给 Invoke-Expression,它告诉我必须将它放在引号中并将其作为字符串传递.I am trying to pass a variable with a string that contains an......

    我正在编写一个脚本,我正在使用I'm currently writing a script and I'm usingwhile($IE.busy) {Start-Sleep 1}等待页面准备就绪。 页面准备好后,我的脚本会填写并提交表单。我一直遇到问......

    使用 powershell 我想从某个日期获取工作日名称(星期五).一直在谷歌搜索,找不到这个.如果日期是星期五,我可以做一个 IF 语句来做某事. Using powershell I want to get the week day name (Friday) from a date. Been googling and cant find this one. It so I can do an IF statement to do something if the date is a Friday. 有人可以帮忙吗? ...

    我的C#体面的理解和PowerShell的一个非​​常基本的了解。我使用Windows PowerShell CTP 3,这一直是很有趣的。但是,我想超越编写脚本/功能。是否有任何很酷的东西做用C#?I have a decent understand......

    如果我想将一个对象/HashTable 写入磁盘并稍后再次加载它,PowerShell 支持吗? If I want to write an object / HashTable to disk and load it up again later does PowerShell support that? ...

    我正在使用PowerShell来比较其中包含&符号的两个字符串(即字符串"Policies& Procedures").I am using PowerShell to compare two strings that have an ......

    这似乎是一件非常基本的事情,但我是 PowerShell 的新手,无法弄清楚这一点,也无法在网上找到示例...This seems like a very basic thing to do, but I am new to PowerShell an......

    我想使用 CSV 文件和 PowerShell 脚本在我的 AD 中创建很多用户,但我没有找到如何使用参数PasswordNeverExpire"和用户处于活动状态/非活动状态"创建用户.I want to create a lot of users ......

    我有一个csv文件,正在使用该文件将多个用户上载到Active Directory。其中的组列将包含多个不同的条目。我希望能够将其作为新用户脚本的一部分。I have a csv file which I am using to upload mult......

    公式 =LEFT(AB4,FIND(" ",AB5)-1 在 Excel 中完美运行,但似乎在 PowerShell 中导致错误,我收到此错误:HRESULT 异常:0x800A03EC在 C:ScriptsExcel_NUID2.ps1:21 字符:......

    我只是在Outlook上创建一个新的通讯组列表,其他脚本I just create a new distribution list on Outlook byt he following script$outlook = new-object -com......

    我正在使用一个Azure PowerShell任务和PowerShell任务创建一个发布管道.在Azure Powershell任务中,我有以下代码I'm creating a release pipeline using one Azure Po......

    我有一个PowerShell,如下所示:I have a PowerShell as below:echo "Hello-World"$MyVariable = "Proceed"echo $MyVariable我想做什么:如果 MyVariable ......

    我能够启动Azure Devops Build作业并发送文本参数,但是我似乎只能发送一个参数,而不能发送更多参数.我需要发送一个可以正常工作的令牌参数Ok,但我还想发送一个文本参数,其中包含要由Build作业中的Powershell脚本处理的json有......