PowerShell Team

Automating the world one-liner at a time…

Latest posts

Feb 22, 2019
Post comments count 0
Post likes count 1

Generating PowerShell Cmdlets from OpenAPI/Swagger with AutoRest

Garrett Serack, MSFT

Announcing the availability of the beta version of our new PowerShell cmdlet generator for AutoRest.

Feb 20, 2019
Post comments count 0
Post likes count 0

DSC Resource Kit Release February 2019

Katie Kragenbrink [MSFT]

We just released the DSC Resource Kit! This release includes updates to 14 DSC resource modules. In the past 6 weeks, 126 pull requests have been merged and 102 issues have been closed, all thanks to our amazing community! The modules updated in this release are: For a detailed list of the resource modules and fixes in this release, see the Included in this Release section below. Our latest community call for the DSC Resource Kit was last Wednesday, February 13. We were not able to record the call this time, apologies. We will fix this for ...

Jan 28, 2019
Post comments count 1
Post likes count 1

Parsing Text with PowerShell (3/3)

Steve Lee

This is the third and final post in a three-part series. In the previous posts, we looked at the different operators what are available to us in PowerShell. When analyzing crashes at DICE, I noticed that some of the C++ runtime binaries where missing debug symbols. They should be available for download from Microsoft's public symbol server, and most versions were there. However, due to some process errors at DevDiv, some builds were released publicly without available debug symbols. In some cases, those missing symbols prevented us from debugging th...

Jan 24, 2019
Post comments count 0
Post likes count 1

Parsing Text with PowerShell (2/3)

Steve Lee

This is the second post in a three-part series. The operator The operator splits one or more strings into substrings. The first example is a name-value pattern, which is a common parsing task. Note the usage of the Max-substrings parameter to the operator. We want to ensure that it doesn't matter if the value contains the character to split on. When the line to parse contains fields separated by a well known separator, that is never a part of the field values, we can use the operator in combination with multiple assignment to get the fields into v...

Jan 23, 2019
Post comments count 0
Post likes count 0

The PowerShell-Docs repositories have been moved

Sean Wheeler (PowerShell)

The PowerShell-Docs repositories have been moved from the PowerShell organization to the MicrosoftDocs organization in GitHub. The tools we use to build the documentation are designed to work in the MicrosoftDocs org. Moving the repository lets us build the foundation for future improvements in our documentation experience. Impact of the move During the move there may be some downtime. The affected repositories will be inaccessible during the move process. Also, the documentation processes will be paused. After the move, we need to test access permissions and automation scripts.After these tasks are comp...

Jan 23, 2019
Post comments count 0
Post likes count 0

Announcing the PowerShell Preview Extension in VSCode

Sydney Smith [MSFT]

Preview builds of the PowerShell extension are now available in VSCode We are excited to announce the PowerShell Preview extension in the VSCode marketplace! The PowerShell Preview extension allows users on Windows PowerShell 5.1, Powershell 6.0, and all newer versions to get and test the latest updates to the PowerShell extension and comes with some exciting features. The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. Features of the PowerShell Preview extension The PowerSh...

Jan 18, 2019
Post comments count 2
Post likes count 3

Parsing Text with PowerShell (1/3)

Steve Lee

This is the first post in a three part series. A task that appears regularly in my workflow is text parsing. It may be about getting a token from a single line of text or about turning the text output of native tools into structured objects so I can leverage the power of PowerShell. I always strive to create structure as early as I can in the pipeline, so that later on I can reason about the content as properties on objects instead of as text at some offset in a string. This also helps with sorting, since the properties can have their correct type, so that n...

Jan 10, 2019
Post comments count 0
Post likes count 0

Windows Security change affecting PowerShell

PowerShell Team

Windows Security change affecting PowerShell January 9, 2019 The recent (1/8/2019) Windows security patch CVE-2019-0543, has introduced a breaking change for a PowerShell remoting scenario. It is a narrowly scoped scenario that should have low impact for most users. The breaking change only affects local loopback remoting, which is a PowerShell remote connection made back to the same machine, while using non-Administrator credentials. PowerShell remoting endpoints do not allow access to non-Administrator accounts by default. However, it is possible to modify endpoint configurations, or create new cust...

Jan 9, 2019
Post comments count 0
Post likes count 0

DSC Resource Kit Release January 2019

Katie Keim [MSFT]

We just released the DSC Resource Kit! This release includes updates to 14 DSC resource modules. In the past 6 weeks, 41 pull requests have been merged and 54 issues have been closed, all thanks to our amazing community! The modules updated in this release are: Several of these modules were released to remove the hidden files/folders from this issue. This issue should now be fixed for all modules except DFSDsc which is waiting for some fixes to its tests. For a detailed list of the resource modules and fixes in this release, see the Include...