电源外壳 functions are very robust with several features that greatly improves the way users interact with them. One important feature that is often overlooked is -WhatIf
and -Confirm
support and it is easy to add to your functions. In this article, we will dive deep into how to implement this feature.
powershell:如何禁用smbv3压缩
如果你正在努力 Adv200005安全咨询 为了 CVE-2020-0796,主要的解决方法是禁用主机上的SMB压缩。让我们来看看如何用PowerShell在注册表中做到这一点。
[读 More]powershell:你想知道的一切关于if语句
电源外壳:建立微型模块
我是模块的忠实粉丝,作为包装和分发PowerShell功能的方式。我一直在创建模块,我倾向于使用相当强大的构建和发布脚本。最近,我想要将个体高级功能释放为模块,但我觉得我现有的过程有点很多。所以我开始建立微模块。
[读 More]电源外壳:JIRA模块项目
kevinmarquette.github.io怎么了?
I wanted to let all my regular readers know that kevinmarquette.gitub.io
has moved to powershellexplath.com.。这仍然是您以前使用的站点在新名称下使用相同的内容。
2018年:今年你用Powershell完成了什么?
过度 / r / powershell,我们每个月与PowerShell彼此分享,并在年底反思。这对我来说是一个重要的一年。我不仅能够专业地在一些伟大的项目上工作,我还获得了今年的社区努力的很多认可。当我今年反思时,我比我预期的方式完成了。
[读 More]电源外壳:你想知道的一切关于$ null
这 PowerShell $null
often appears to be simple but it has a lot of nuances. Let’s take a close look at $null
so you know what happens when you unexpectedly run into a $null
value.
Powershell和Devops Global Summit 2019
这 Powershell和Devops Global Summit 2019 是最大的聚会之一 电源外壳社区。此次会议不仅满足会议,它还为您提供了与社区许多人联系的机会。这是一个为每个人提供的会议。
[读 More]powershell:你想知道的一切
电源外壳:用Azure Devops管道构建模块
微软刚刚发布了一个新的 Azure Devops. 服务呼吁 Azure PILINES. 这是开源项目的免费。我决定通过移动我的psgraph构建并将管道释放到蔚蓝的管道来检查。
[读 More]电源外壳:依赖子模块
One nice feature of a DSC configuration is that all resources support specifying a 依赖于取决于
property that ensures that the resources that it depends on are ran first. Every once in a while, I find myself wanting to use that feature in other scripts. I created a module called 依赖于取决于 to do that for me.
电源外壳:如何创建标准库二进制模块
我纪念我想要实现为二进制模块的模块。我还没有创造一个使用的 电源外壳标准库 所以这觉得很好。我能用它 创建跨平台二进制模块 在没有任何障碍的情况下创建此模块的指南。我们将走同样的过程,我将在路上添加一些额外的评论。
[读 More]powershell:使用nameit生成随机数据
我发现我经常需要随机数据集来测试或用于我的演示中的例子。我最喜欢的工具是 名称。这是一个由PowerShell模块编写的 Doug Finke. 这使得它超级易于创造出良好的外观而是随机数据。
PS:> Invoke-Generate '[person]' -Count 3
Heather Rogers
John Bailey
Julia Perez
电源外壳:Convertto-BreakPoint
我上周就在Powershell和Devops Summit。很高兴见到我在网上工作的许多人。我也走了几个想法,我想去工作。
一个想法坐在我身边 Kirk Munro在调试时的会话。我正在编写很多笔记并反思我如何调试我的脚本。然后我意识到我可以制作一个简单的功能来使其更容易。
[读 More]