PowerShell v6.0.0-beta.8 Release Notes
Release Date: 2017-10-05 // over 6 years ago-
💥 Breaking changes
- 🔄 Changed
New-Service
to return error when given unsupported-StartupType
and fixedSet-Service
icon failing test. (#4802) - 👍 Allow
*
to be used in registry path forRemove-Item
. (#4866) - ✂ Remove unsupported
-ShowWindow
switch fromGet-Help
. (#4903) - 🛠 Fix incorrect position of a parameter which resulted in the args passed as input instead of as args for
InvokeScript()
. (#4963)
⚡️ Engine updates and fixes
- 👉 Make calls to
void CodeMethod
work. (#4850) (Thanks @powercode) - Get
PSVersion
andGitCommitId
from theProductVersion
attribute of assembly (#4863) (Thanks @iSazonov) - 🛠 Fix
powershell -version
and built-in help forpowershell.exe
to align with other native tools. (#4958 & #4931) (Thanks @iSazonov) - Load assemblies with
Assembly.LoadFrom
beforeAssembly.Load
when the file path is given. (#4196) - ➕ Add a generic file watcher function in
HelpersCommon.psm1
. (#4775) - ⚡️ Update old links and fix broken links in
docs/host-powershell/README.md
. (#4877) - 🛠 Fix when importing remote modules using version filters (and added tests). (#4900)
- 🏁 Enable transcription of native commands on non-Windows platforms. (#4871)
- ➕ Add a new line to
CommandNotFoundException
error string. (#4934 & #4991) - 🛠 Fix bug where PowerShell would exit with an error within an SSH remoting connection on Linux. (#4993)
- 🛠 Fix issues with expression redirected to file. (#4847)
⚡️ General cmdlet updates and fixes
- ➕ Added
Remove-Service
to Management module. (#4858) (Thanks @joandrsn) - ➕ Added functionality to set credentials on
Set-Service
command. (#4844) (Thanks @joandrsn) - 🛠 Fix
Select-String
to exclude directories (as opposed to individual files) discovered from-Path
. (#4829) (Thanks @iSazonov) - 👍
Get-Date
now supports more argument completion scenarios by addingArgumentCompletionsAttribute
. (#4835) (Thanks @iSazonov) - 🏁 Exclude
-ComObject
parameter ofNew-Object
on unsupported (currently non-Windows) platforms. (#4922) (Thanks @iSazonov) - ⚡️ Updated default
ModuleVersion
inNew-ModuleManifest
to0.0.1
to align with SemVer. (#4842) (Thanks @LDSpits) - ➕ Add Multipart support to web cmdlets. (#4782) (Thanks @markekraus)
- ➕ Add
-ResponseHeadersVariable
toInvoke-RestMethod
to enable the capture of response headers. (#4888) (Thanks @markekraus) - 🎉 Initialize web cmdlets headers dictionary only once. (#4853) (Thanks @markekraus)
- 🔄 Change web cmdlets
UserAgent
fromWindowsPowerShell
toPowerShell
. (#4914) (Thanks @markekraus)
🏗 Build and Packaging Improvements
- 🏗 Make the build output the WiX compilation log if it failed. (#4831) (Thanks @bergmeister)
- 👉 Use a simple file based check in the MSI for the VC++ 2015 redistributables. (#4745) (Thanks @bergmeister)
- 🆕 New icon for PowerShell Core. (#4848)
- 🐧 Build Powershell Core using the generic RID
linux-x64
. (#4841) - 🐧 Create generic Linux-x64 packages that are portable to all supported RPM Linux distros (and more similar for Debian based distros). (#4902 & #4994)
- 🏗 Suppress the output of building test tools in
Compress-TestContent
. (#4957) - ✂ Remove unnecessary error messages from output. (#4954)
- ⚡️ Update Travis CI script so that PRs can fail due to Pester tests. (#4830)
- 🚀 Move release build definition into PowerShell. (#4884)
- 🛠 Fix credential scan issues. (#4927 & #4935)
- 🔒 Enable security flags in native compiler. (#4933)
- ➕ Add VS 2017 solution file for
powershell-win-core
. (#4748)
Code Cleanup
- ✂ Remove remainder of
Utility.Activities
(Workflow code). (#4880) - ✂ Remove
Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll
. (#4868) - Enable auto EOL on Git repo side, fix some character encoding issues. (#4912)
- ⚡️ Updated EOL for all files to be LF in the repository. (#4943 & #4956)
- ✂ Removed leading whitespace. (#4991)
DSC Language
- ⚡️ Update version of
PSDesiredStateConfiguration
in project files to fix complication of MOF files with theConfiguration
keyword. (#4979)
✅ Test
- ✅ Replace httpbin.org tests with
WebListener
. (Thanks @markekraus)- headers (#4799)
- user-agent (#4798)
- redirect (#4852)
- encoding (#4869)
- delay (#4905)
- gzip & enable deflate (#4948)
- related changes and fixes (#4920)
- ✅ Port tests for constrained language mode. (#4816)
- ✅ Enable
Select-String
test from a network path. (#4921) (Thanks @iSazonov) - ✅ Reformat
Measure-Object
test. (#4972) (Thanks @iSazonov) - ✅ Mitigate intermittent failures in access denied tests. (#4788)
- 🛠 Fix tests that incorrectly use
ShouldBeErrorId
. (#4793) - 🛠 Fix a test issue that causes tests to be skipped in Travis CI run (#4891)
- ✅ Skip web cmdlet certificate authentication tests on CentOS and Mac. (#4822)
- Validate product resource strings against resx files. (#4811 & #4861)
- ➕ Add source files for coverage run. (#4925)
- ➕ Add the UTC offset correctly in tests for CDXML cmdlets. (#4867)
- 0️⃣ Be sure to change
PSDefaultParameterValue
in the global scope. (#4977 & #4892) - ⬇️ Reduce output of Pester for CI. (#4855)
- ➕ Add tests for
Get-Content
(#4723) (Thanks @sarithsutha)- Remoting and Jobs (#4928)
Get-Help
(#4895)Get-Command -ShowCommandInfo
(#4906)Get-Content -Tail
(#4790)Get-Module
over remoting (#4787)Start/Stop/Suspend/Resume/Restart-Service
cmdlets (#4774)- WSMan Config provider tests (#4756)
- CDXML CIM
DateTime
test (#4796)
📚 Documentation and Graphics
- Sort
.spelling
(Thanks @markekraus) - 👌 Improve the guideline for performance consideration. (#4824)
- ➕ Add setup steps for MacOS to use PSRP over SSH. (#4872)
- Instructions to demo PowerShell Core on Raspbian. (#4882)
- ➕ Added instructions to get permission to use PowerShell image assets. (#4938)
- ➕ Added demo for using Windows PowerShell modules. (#4886)
- 🔄 Changed