Tags: SeeminglyScience/PowerShell
Tags
v6.0.0-beta.8 release of PowerShellCore Here are the major changes: * Breaking changes - Changed `New-Service` to return error when given unsupported `-StartupType` and fixed `Set-Service` icon failing test. (PowerShell#4802) - Allow `*` to be used in registry path for `Remove-Item`. (PowerShell#4866) - Remove unsupported `-ShowWindow` switch from `Get-Help`. (PowerShell#4903) - Fix incorrect position of a parameter which resulted in the args passed as input instead of as args for `InvokeScript()`. (PowerShell#4963) * Engine updates and fixes - Make calls to `void CodeMethod` work. (PowerShell#4850) (Thanks @powercode) - Get `PSVersion` and `GitCommitId` from the `ProductVersion` attribute of assembly (PowerShell#4863) (Thanks @iSazonov) - Fix `powershell -version` and built-in help for `powershell.exe` to align with other native tools. (PowerShell#4958 & PowerShell#4931) (Thanks @iSazonov) - Load assemblies with `Assembly.LoadFrom` before `Assembly.Load` when the file path is given. (PowerShell#4196) - Add a generic file watcher function in `HelpersCommon.psm1`. (PowerShell#4775) - Update old links and fix broken links in `docs/host-powershell/README.md`. (PowerShell#4877) - Fix when importing remote modules using version filters (and added tests). (PowerShell#4900) - Enable transcription of native commands on non-Windows platforms. (PowerShell#4871) - Add a new line to `CommandNotFoundException` error string. (PowerShell#4934 & PowerShell#4991) - Fix bug where PowerShell would exit with an error within an SSH remoting connection on Linux. (PowerShell#4993) - Fix issues with expression redirected to file. (PowerShell#4847) * General cmdlet updates and fixes - Added `Remove-Service` to Management module. (PowerShell#4858) (Thanks @joandrsn) - Added functionality to set credentials on `Set-Service` command. (PowerShell#4844) (Thanks @joandrsn) - Fix `Select-String` to exclude directories (as opposed to individual files) discovered from `-Path`. (PowerShell#4829) (Thanks @iSazonov) - `Get-Date` now supports more argument completion scenarios by adding `ArgumentCompletionsAttribute`. (PowerShell#4835) (Thanks @iSazonov) - Exclude `-ComObject` parameter of `New-Object` on unsupported (currently non-Windows) platforms. (PowerShell#4922) (Thanks @iSazonov) - Updated default `ModuleVersion` in `New-ModuleManifest` to `0.0.1` to align with SemVer. (PowerShell#4842) (Thanks @LDSpits) - Add Multipart support to web cmdlets. (PowerShell#4782) (Thanks @markekraus) - Add `-ResponseHeadersVariable` to `Invoke-RestMethod` to enable the capture of response headers. (PowerShell#4888) (Thanks @markekraus) - Initialize web cmdlets headers dictionary only once. (PowerShell#4853) (Thanks @markekraus) - Change web cmdlets `UserAgent` from `WindowsPowerShell` to `PowerShell`. (PowerShell#4914) (Thanks @markekraus) * DSC Language - Update version of `PSDesiredStateConfiguration` in project files to fix complication of MOF files with the `Configuration` keyword. (PowerShell#4979)
v6.0.0-beta.7 release of PowerShellCore Here are the major changes: * Breaking change - Fix `Get-Content -Delimiter` to not include the delimiter in the array elements returned (PowerShell#3706) (Thanks @mklement0) - Rename `$IsOSX` to `$IsMacOS` (PowerShell#4757) * Engine updates and fixes - Use stricter rules when unwrapping a PSObject that wraps a COM object (PowerShell#4614) - Remove appended Windows PowerShell `PSModulePath` on Windows. (PowerShell#4656) - Ensure `GetNetworkCredential()` returns null if PSCredential has null or empty user name (PowerShell#4697) - Push locals of automatic variables to 'DottedScopes' when dotting script cmdlets (PowerShell#4709) - Fix `using module` when module has non-terminating errors handled with `SilentlyContinue` (PowerShell#4711) (Thanks @iSazonov) - Enable use of 'Singleline,Multiline' option in split operator (PowerShell#4721) (Thanks @iSazonov) - Fix error message in `ValidateSetAttribute.ValidateElement()` (PowerShell#4722) (Thanks @iSazonov) * General cmdlet updates and fixes - Add Meta, Charset, and Transitional parameters to `ConvertTo-HTML` (PowerShell#4184) (Thanks @ergo3114) - Prevent `Test-ModuleManifest` from loading unnecessary modules (PowerShell#4541) - Remove AlternateStream code and `-Stream` from provider cmdlets on non-Windows (PowerShell#4567) - Add explicit ContentType detection to `Invoke-RestMethod` (PowerShell#4692) - Fix an error on `Enter-PSSession` exit (PowerShell#4693) - Add `-WhatIf` switch to `Start-Process` cmdlet (PowerShell#4735) (Thanks @sarithsutha) - Remove double spaces in .cs, .ps1, and .resx files (PowerShell#4741 & PowerShell#4743) (Thanks @korygill) - Replace 'Windows PowerShell' with 'PowerShell' in resx files (PowerShell#4758) (Thanks @iSazonov) * Build and Packaging Improvements - Refactor MSBuild project files to get PowerShell version from git tag (PowerShell#4182) (Thanks @iSazonov) - Create a single package for each Windows supported architecture (x86 and amd64) (PowerShell#4540) - Set the default windows RID to win7-<arch> (PowerShell#4701) - Enable cross-compiling for Raspberry-PI arm32 (PowerShell#4742) - Fix macOS brew reinstall command (PowerShell#4627) (Thanks @TheNewStellW) - Improvements to the Travis-CI script (PowerShell#4689, PowerShell#4731, PowerShell#4807) - Update OpenSUSE docker image to 42.2 (PowerShell#4737) - Confirm `Start-PSPackage` produces a package (PowerShell#4795) * Test - Add test WebListener module and tests for Web Cmdlet Certificate Authentication (PowerShell#4622) (Thanks @markekraus) - Move WebCmdlets HTTPS tests to WebListener (PowerShell#4733) (Thanks @markekraus) - Replace httpbin.org/get tests With WebListener (PowerShell#4738) (Thanks @markekraus) * Documentation - Clarify the Pull Request process, roles, and responsibilities (PowerShell#4710) - Update coding guidelines to make it more concrete and useful in a review process (PowerShell#4754)
v6.0.0-beta.6 release of PowerShellCore Here are the major changes: * Breaking change - Make invalid argument error messages for `-File` and `-Command` consistent and make exit codes consistent with Unix standards (PowerShell#4573) * Engine updates and fixes - Make resource loading to work with PowerShell SxS installation (PowerShell#4139) - Add missing assemblies to TPA list to make Pwrshplughin.dll work (PowerShell#4502) - Make sure running `powershell` starts instance of the current version of PowerShell. (PowerShell#4481) - Make sure we only use Unicode output by default on Nano and IoT systems (PowerShell#4074) - Enable `powershell -WindowStyle` to work on Windows. (PowerShell#4573) - Enable enumeration of COM collections. (PowerShell#4553) * General cmdlet updates and fixes - Fix Web CmdLets `-SkipHeaderValidation` to work with non-standard User-Agent headers. (PowerShell#4479 & PowerShell#4512) (Thanks @markekraus) - Add Certificate authentication support for Web CmdLets. (PowerShell#4646) (Thanks @markekraus) - Add support for content headers to Web CmdLets. (PowerShell#4494 & PowerShell#4640) (Thanks @markekraus) - Add support for converting enums to string (PowerShell#4318) (Thanks @KirkMunro) - Ignore casing when binding PSReadline KeyHandler functions (PowerShell#4300) (Thanks @oising) - Fix `Unblock-File` for the case of a read-only file. (PowerShell#4395) (Thanks @iSazonov) - Use supported API to set Central Access Policy ID (CAPID) in SACL. (PowerShell#4496) - Make `Start-Trace` support paths that require escaping in the underlying APIs (PowerShell#3863) - Removing `#if CORECLR` enabled, `Enable-PSRemoting` and `Disable-PSRemoting` (PowerShell#2671) - Enable WSManCredSSP cmdlets and add tests. (PowerShell#4336) - Use .NET Core's implementation for ShellExecute. (PowerShell#4523) - Fix SSH Remoting handling of KeyFileParameter when the path must be quoted. (PowerShell#4529) - Make Web CmdLets use HTML meta charset attribute value, if present (PowerShell#4338) - Move to .NET Core 2.0 final (PowerShell#4603) * Build/test and code cleanup - Add Amazon Linux Docker image and enable related tests. (PowerShell#4393) (Thanks @DarwinJS) - Make MSI verify pre-requisites are installed. (PowerShell#4602) (Thank @bergmeister) - Fixed formatting issues in build files. (PowerShell#4630) (Thanks @iSazonov) - Make sure `install-powershell.sh` installs latest powershell on macOS, even if an old version is cached in brew. (PowerShell#4509) (Thanks @richardszalay for reporting.) - Fixes install scripts issue for macOS. (PowerShell#4631) (Thanks @DarwinJS) - Many stability improvements to our nightly code coverage automation. (PowerShell#4313 & PowerShell#4550) - Remove hash validation from nanoserver-insider Docker file, due to frequent changes. (PowerShell#4498) - Update to make Travis-CI daily build badge more reliable. (PowerShell#4522) - Remove unused build files, build code, and product code. (PowerShell#4532, PowerShell#4580, PowerShell#4590, PowerShell#4589, PowerShell#4588, PowerShell#4587, PowerShell#4586, PowerShell#4583, PowerShell#4582, PowerShell#4581) - Add additional acceptance tests for PowerShellGet. (PowerShell#4531) - Only publish a NuGet of the full PowerShell core package on daily builds and not merge. (PowerShell#4517) - Update nanoserver-insider Docker file due to breaking changes in the base image. (PowerShell#4555) - Cleanup engine tests (PowerShell#4551) - Fix intermittent failures in filesystem tests (PowerShell#4566) - Add tests for - `New-WinEvent`. (PowerShell#4384) - tab completion. (PowerShell#4560) - various types. (PowerShell#4503) - CDXML CmdLets. (PowerShell#4537) - Only allow packaging of powershell, if it was built from a repo at the root of the file system named powershell. (PowerShell#4569 & PowerShell#4600) - Update `Format-Hex` test cases to use -TestCase instead of foreach loops. (PowerShell#3800) - Added functionality to get code coverage for a single file locally. (PowerShell#4556) * Documentation - Added Ilya (@iSazonov) as a Maintainer. (PowerShell#4365) - Grammar fix to the Pull Request Guide. (PowerShell#4322) - Add homebrew for macOS to install documentation. (PowerShell#3838) - Added a CodeOwner file. (PowerShell#4565 & PowerShell#4597) * Cleanup `#if CORECLR` code PowerShell 6.0 will be exclusively built on top of CoreCLR, so we are removing a large amount of code that's built only for FullCLR.
v6.0.0-beta.5 release of PowerShellCore Here are the major changes: * Breaking changes - Remove the `*-Counter` cmdlets in `Microsoft.PowerShell.Diagnostics` due to the use of unsupported APIs until a better solution is found. (PowerShell#4303) - Remove the `Microsoft.PowerShell.LocalAccounts` due to the use of unsupported APIs until a better solution is found. (PowerShell#4302) * Engine updates and fixes - Fix the issue where PowerShell Core wasn't working on Windows 7 or Windows Server 2008 R2/2012 (non-R2). (PowerShell#4463) - `ValidateSetAttribute` enhancement: support set values to be dynamically generated from a custom `ValidateSetValueGenerator`. (PowerShell#3784) (Thanks to @iSazonov!) - Disable breaking into debugger on Ctrl+Break when running non-interactively. (PowerShell#4283) (Thanks to @mwrock!) - Give error instead of crashing if WSMan client library is not available. (PowerShell#4387) - Allow passing `$true`/`$false` as a parameter to scripts using `powershell.exe -File`. (PowerShell#4178) - Enable `DataRow`/`DataRowView` adapters in PowerShell Core to fix an issue with `DataTable` usage. (PowerShell#4258) - Fix an issue where PowerShell class static methods were being shared across `Runspace`s/`SessionState`s. (PowerShell#4209) - Fix array expression to not return null or throw error. (PowerShell#4296) - Fixes a CIM deserialization bug where corrupted CIM classes were instantiating non-CIM types. (PowerShell#4234) - Improve error message when `HelpMessage` property of `ParameterAttribute` is set to empty string. (PowerShell#4334) - Make `ShellExecuteEx` run in a STA thread. (PowerShell#4362) * General cmdlet updates and fixes - Add `-SkipHeaderValidation` switch to `Invoke-WebRequest` and `Invoke-RestMethod` to support adding headers without validating the header value. (PowerShell#4085) - Add support for `Invoke-Item -Path <folder>`. (PowerShell#4262) - Fix `ConvertTo-Html` output when using a single column header. (PowerShell#4276) - Fix output of `Length` for `FileInfo` when using `Format-List`. (PowerShell#4437) - Fix an issue in implicit remoting where restricted sessions couldn't use `Get-FormatData –PowerShellVersion`. (PowerShell#4222) - Fix an issue where `Register-PSSessionConfiguration` fails if `SessionConfig` folder doesn't exist. (PowerShell#4271) * Installer updates - Create script to install latest PowerShell from Microsoft package repositories (or Homebrew) on non-Windows platforms. (PowerShell#3608) (Thanks to @DarwinJS!) - Enable MSI upgrades rather than a side-by-side install. (PowerShell#4259) - Add a checkbox to open PowerShell after the Windows MSI installer has finished. (PowerShell#4203) (Thanks to @bergmeister!) - Add Amazon Linux compatibility to `install-powershell.sh`. (PowerShell#4360) (Thanks to @DarwinJS!) - Add ability to package PowerShell Core as a NuGet package. (PowerShell#4363) * Build/test and code cleanup - Add build check for MFC for Visual C++ during Windows builds. This fixes a long-standing (and very frustrating!) issue with missing build dependencies! (PowerShell#4185) (Thanks to @KirkMunro!) - Move building Windows PSRP binary out of `Start-PSBuild`. Now `Start-PSBuild` doesn't build PSRP binary on windows. Instead, we consume the PSRP binary from a NuGet package. (PowerShell#4335) - Add tests for built-in type accelerators. (PowerShell#4230) (Thanks to @dchristian3188!) - Increase code coverage of `Get-ChildItem` on file system. (PowerShell#4342) (Thanks to @jeffbi!) - Increase test coverage for `Rename-Item` and `Move-Item`. (PowerShell#4329) (Thanks to @jeffbi!) - Add test coverage for Registry provider. (PowerShell#4354) (Thanks to @jeffbi!) - Fix warnings and errors thrown by PSScriptAnalyzer. (PowerShell#4261) (Thanks to @bergmeister!) - Fix regressions that cause implicit remoting tests to fail. (PowerShell#4326) - Disable legacy UTC and SQM Windows telemetry by enclosing the code in '#if LEGACYTELEMETRY'. (PowerShell#4190) * Cleanup `#if CORECLR` code PowerShell 6.0 will be exclusively built on top of CoreCLR, so we are removing a large amount of code that's built only for FullCLR. To read more about this, check out [this blog post](https://blogs.msdn.microsoft.com/powershell/2017/07/14/powershell-6-0-roadmap-coreclr-backwards-compatibility-and-more/).
** v6.0.0-beta.4 - 2017-07-12 - Add Windows PowerShell `PSModulePath` by default on Windows. (PowerShell#4132) - Move PowerShell to `2.0.0-preview3-25426-01` and using the .NET CLI version `2.0.0-preview2-006502`. (PowerShell#4144) *** Engine updates and fixes - Performance improvement in PSReadline by minimizing writing ANSI escape sequences. (PowerShell#4110) - Implement Unicode escape parsing so that users can use Unicode characters as arguments, strings or variable names. (PowerShell#3958) (Thanks to @rkeithhill!) - Script names or full paths can have commas. (PowerShell#4136) (Thanks to @TimCurwick!) - Added `semver` as a type accelerator for `System.Management.Automation.SemanticVersion`. (PowerShell#4142) (Thanks to @oising!) - Close `eventLogSession` and `EventLogReader` to unlock an ETL log. (PowerShell#4034) (Thanks to @iSazonov!) *** General cmdlet updates and fixes - `Move-Item` cmdlet honors `-Include`, `-Exclude`, and `-Filter` parameters. (PowerShell#3878) - Add a parameter to `Get-ChildItem` called `-FollowSymlink` that traverses symlinks on demand, with checks for link loops. (PowerShell#4020) - Change `New-ModuleManifest` encoding to UTF8NoBOM on non-Windows platforms. (PowerShell#3940) - `Get-AuthenticodeSignature` cmdlets can now get file signature timestamp. (PowerShell#4061) - Add tab completion for `Export-Counter` `-FileFormat` parameter. (PowerShell#3856) - Fixed `Import-Module` on non-Windows platforms so that users can import modules with `NestedModules` and `RootModules`. (PowerShell#4010) - Close `FileStream` opened by `Get-FileHash`. (PowerShell#4175) (Thanks to @rkeithhill!) *** Remoting - Fixed hang when the SSH client abruptly terminates. (PowerShell#4123) *** Documentation - Added recommended settings for VS Code. (PowerShell#4054) (Thanks to @iSazonov!)
v6.0.0-beta.3 release of PowerShellCore Here are the major changes: * Breaking changes - Remove the `BuildVersion` property from `$PSVersionTable`. This property was strongly tied to the Windows build version. Instead, we recommend that you use `GitCommitId` to retrieve the exact build version of PowerShell Core. (PowerShell#3877) (Thanks to @iSazonov!) - Change positional parameter for `powershell.exe` from `-Command` to `-File`. This fixes the usage of `#!` (aka as a shebang) in PowerShell scripts that are being executed from non-PowerShell shells on non-Windows platforms. This also means that you can now do things like `powershell foo.ps1` or `powershell fooScript` without specifying `-File`. However, this change now requires that you explicitly specify `-c` or `-Command` when trying to do things like `powershell.exe Get-Command`. (PowerShell#4019) - Remove `ClrVersion` property from `$PSVersionTable`. (This property is largely irrelevant for .NET Core, and was only preserved in .NET Core for specific legacy purposes that are inapplicable to PowerShell.) (PowerShell#4027) * Engine updates and fixes - Add support to probe and load assemblies from GAC on Windows platform. This means that you can now load Windows PowerShell modules with assembly dependencies which reside in the GAC. If you're interested in running your traditional Windows PowerShell scripts and cmdlets using the power of .NET Standard 2.0, try adding your Windows PowerShell module directories to your PowerShell Core `$PSModulePath`. (E.g. `$env:PSModulePath += ';C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'`) Even if the module isn't owned by the PowerShell Team, please tell us what works and what doesn't by leaving a comment in [issue PowerShell#4062][issue-4062]! (PowerShell#3981) - Enhance type inference in tab completion based on runtime variable values. (PowerShell#2744) (Thanks to @powercode!) This enables tab completion in situations like: ```powershell $p = Get-Process $p | Foreach-Object Prio<tab> ``` - Add `GitCommitId` to PowerShell Core banner. Now you don't have to run `$PSVersionTable` as soon as you start PowerShell to get the version! (PowerShell#3916) (Thanks to @iSazonov!) - Fix a bug in tab completion to make `native.exe --<tab>` call into native completer. (PowerShell#3633) (Thanks to @powercode!) - Fix PowerShell Core to allow use of long paths that are more than 260 characters. (PowerShell#3960) - Fix ConsoleHost to honour `NoEcho` on Unix platforms. (PowerShell#3801) - Fix transcription to not stop when a Runspace is closed during the transcription. (PowerShell#3896) [issue-4062]: PowerShell#4062 * General cmdlet updates and fixes - Enable `Send-MailMessage` in PowerShell Core. (PowerShell#3869) - Fix `Get-Help` to support case insensitive pattern matching on Unix platforms. (PowerShell#3852) - Fix tab completion on `Get-Help` for `about_*` topics. (PowerShell#4014) - Fix PSReadline to work in Windows Server Core container image. (PowerShell#3937) - Fix `Import-Module` to honour `ScriptsToProcess` when `-Version` is specified. (PowerShell#3897) - Strip authorization header on redirects with web cmdlets. (PowerShell#3885) - `Start-Sleep`: add the alias `ms` to the parameter `-Milliseconds`. (PowerShell#4039) (Thanks to @Tadas!) * Developer experience - Make hosting PowerShell Core in your own .NET applications much easier by refactoring PowerShell Core to use the default CoreCLR loader. (PowerShell#3903) - Update `Add-Type` to support `CSharpVersion7`. (PowerShell#3933) (Thanks to @iSazonov)
v6.0.0-beta.2 release of PowerShellCore Here are the major changes: * Support backgrounding of pipelines with ampersand (`&`) (PowerShell#3360) - Putting `&` at the end of a pipeline will cause the pipeline to be run as a PowerShell job. - When a pipeline is backgrounded, a job object is returned. - Once the pipeline is running as a job, all of the standard `*-Job` cmdlets can be used to manage the job. - Variables (ignoring process-specific variables) used in the pipeline are automatically copied to the job so `Copy-Item $foo $bar &` just works. - The job is also run in the current directory instead of the user's home directory. - For more information about PowerShell jobs, see [about_Jobs](https://msdn.microsoft.com/en-us/powershell/reference/6/about/about_jobs). * Engine updates and fixes - Crossgen more of the .NET Core assemblies to improve PowerShell Core startup time. (PowerShell#3787) - Enable comparison between a `SemanticVersion` instance and a `Version` instance that is constructed only with `Major` and `Minor` version values. This will fix some cases where PowerShell Core was failing to import older Windows PowerShell modules. (PowerShell#3793) (Thanks to @mklement0!) * General cmdlet updates and fixes - Support Link header pagination in web cmdlets (PowerShell#3828) - For `Invoke-WebRequest`, when the response includes a Link header we create a RelationLink property as a Dictionary representing the URLs and `rel` attributes and ensure the URLs are absolute to make it easier for the developer to use. - For `Invoke-RestMethod`, when the response includes a Link header we expose a `-FollowRelLink` switch to automatically follow `next` `rel` links until they no longer exist or once we hit the optional `-MaximumFollowRelLink` parameter value. - Update `Get-ChildItem` to be more in line with the way that the *nix `ls -R` and the Windows `DIR /S` native commands handle symbolic links to directories during a recursive search. Now, `Get-ChildItem` returns the symbolic links it encountered during the search, but it won't search the directories those links target. (PowerShell#3780) - Fix `Get-ChildItem` to continue enumeration after throwing an error in the middle of a set of items. This fixes some issues where inaccessible directories or files would halt execution of `Get-ChildItem`. (PowerShell#3806) - Fix `ConvertFrom-Json` to deserialize an array of strings from the pipeline that together construct a complete JSON string. This fixes some cases where newlines would break JSON parsing. (PowerShell#3823) - Enable `Get-TimeZone` for macOS/Linux. (PowerShell#3735) - Change to not expose unsupported aliases and cmdlets on macOS/Linux. (PowerShell#3595) (Thanks to @iSazonov!) - Fix `Invoke-Item` to accept a file path that includes spaces on macOS/Linux. (PowerShell#3850) - Fix an issue where PSReadline was not rendering multi-line prompts correctly on macOS/Linux. (PowerShell#3867) - Fix an issue where PSReadline was not working on Nano Server. (PowerShell#3815)
v6.0.0-beta.1 release of PowerShellCore Here are the major changes: * Move to .NET Core 2.0 (.NET Standard 2.0 support) PowerShell Core has moved to using .NET Core 2.0 so that we can leverage all the benefits of .NET Standard 2.0. (PowerShell#3556) To learn more about .NET Standard 2.0, there's some great starter content [on Youtube](https://www.youtube.com/playlist?list=PLRAdsfhKI4OWx321A_pr-7HhRNk7wOLLY), on [the .NET blog](https://blogs.msdn.microsoft.com/dotnet/2016/09/26/introducing-net-standard/), and [on GitHub](https://github.com/dotnet/standard/blob/master/docs/faq.md). We'll also have more content soon in our [repository documentation](https://github.com/PowerShell/PowerShell/tree/master/docs) (which will eventually make its way to [official documentation](https://github.com/powershell/powershell-docs)). In a nutshell, .NET Standard 2.0 allows us to have universal, portable modules between Windows PowerShell (which uses the full .NET Framework) and PowerShell Core (which uses .NET Core). Many modules and cmdlets that didn't work in the past may now work on .NET Core, so import your favorite modules and tell us what does and doesn't work in our GitHub Issues! * Telemetry - For the first beta of PowerShell Core 6.0, telemetry has been to the console host to report two values (PowerShell#3620): - the OS platform (`$PSVersionTable.OSDescription`) - the exact version of PowerShell (`$PSVersionTable.GitCommitId`) If you want to opt-out of this telemetry, simply delete `$PSHome\DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY`. Even before the first run of Powershell, deleting this file will bypass all telemetry. In the future, we plan on also enabling a configuration value for whatever is approved as part of [RFC0015](https://github.com/PowerShell/PowerShell-RFC/blob/master/1-Draft/RFC0015-PowerShell-StartupConfig.md). We also plan on exposing this telemetry data (as well as whatever insights we leverage from the telemetry) in [our community dashboard](https://blogs.msdn.microsoft.com/powershell/2017/01/31/powershell-open-source-community-dashboard/). If you have any questions or comments about our telemetry, please file an issue. * Engine updates and fixes - Add support for native command globbing on Unix platforms. (PowerShell#3643) - This means you can now use wildcards with native binaries/commands (e.g. `ls *.txt`). - Fix PowerShell Core to find help content from `$PSHome` instead of the Windows PowerShell base directory. (PowerShell#3528) - This should fix issues where about_* topics couldn't be found on Unix platforms. - Add the `OS` entry to `$PSVersionTable`. (PowerShell#3654) - Arrange the display of `$PSVersionTable` entries in the following way: (PowerShell#3562) (Thanks to @iSazonov!) - `PSVersion` - `PSEdition` - alphabetical order for rest entries based on the keys - Make PowerShell Core more resilient when being used with an account that doesn't have some key environment variables. (PowerShell#3437) - Update PowerShell Core to accept the `-i` switch to indicate an interactive shell. (PowerShell#3558) - This will help when using PowerShell as a default shell on Unix platforms. - Relax the PowerShell `SemanticVersion` constructors to not require 'minor' and 'patch' portions of a semantic version name. (PowerShell#3696) - Improve performance to security checks when group policies are in effect for ExecutionPolicy. (PowerShell#2588) (Thanks to @powercode) - Fix code in PowerShell to use `IntPtr(-1)` for `INVALID_HANDLE_VALUE` instead of `IntPtr.Zero`. (PowerShell#3544) (Thanks to @0xfeeddeadbeef) * General cmdlet updates and fixes - Change the default encoding and OEM encoding used in PowerShell Core to be compatible with Windows PowerShell. (PowerShell#3467) (Thanks to @iSazonov!) - Fix a bug in `Import-Module` to avoid incorrect cyclic dependency detection. (PowerShell#3594) - Fix `New-ModuleManifest` to correctly check if a URI string is well formed. (PowerShell#3631) * Filesystem-specific updates and fixes - Use operating system calls to determine whether two paths refer to the same file in file system operations. (PowerShell#3441) - This will fix issues where case-sensitive file paths were being treated as case-insensitive on Unix platforms. - Fix `New-Item` to allow creating symbolic links to file/directory targets and even a non-existent target. (PowerShell#3509) - Change the behavior of `Remove-Item` on a symbolic link to only removing the link itself. (PowerShell#3637) - Use better error message when `New-Item` fails to create a symbolic link because the specified link path points to an existing item. (PowerShell#3703) - Change `Get-ChildItem` to list the content of a link to a directory on Unix platforms. (PowerShell#3697) - Fix `Rename-Item` to allow Unix globbing patterns in paths. (PowerShell#3661) * Interactive fixes - Add Hashtable tab completion for `-Property` of `Select-Object`. (PowerShell#3625) (Thanks to @powercode) - Fix tab completion with `@{<tab>` to avoid crash in PSReadline. (PowerShell#3626) (Thanks to @powercode) - Use `<id> - <name>` as `ToolTip` and `ListItemText` when tab completing process ID. (PowerShell#3664) (Thanks to @powercode) * Remoting fixes - Update PowerShell SSH remoting to handle multi-line error messages from OpenSSH client. (PowerShell#3612) - Add `-Port` parameter to `New-PSSession` to create PowerShell SSH remote sessions on non-standard (non-22) ports. (PowerShell#3499) (Thanks to @lee303) * API Updates - Add the public property `ValidRootDrives` to `ValidateDriveAttribute` to make it easy to discover the attribute state via `ParameterMetadata` or `PSVariable` objects. (PowerShell#3510) (Thanks to @indented-automation!) - Improve error messages for `ValidateCountAttribute`. (PowerShell#3656) (Thanks to @iSazonov) - Update `ValidatePatternAttribute`, `ValidateSetAttribute` and `ValidateScriptAttribute` to allow users to more easily specify customized error messages. (PowerShell#2728) (Thanks to @powercode)
v6.0.0-alpha.18 release of PowerShellCore Here are the major changes: * Progress Bar We made a number of fixes to the progress bar rendering and the `ProgressRecord` object that improved cmdlet performance and fixed some rendering bugs on non-Windows platforms. - Fix a bug that caused the progress bar to drift on Unix platforms. (PowerShell#3289) - Improve the performance of writing progress records. (PowerShell#2822) (Thanks to @iSazonov!) - Fix the progress bar rendering on Unix platforms. (PowerShell#3362) (PowerShell#3453) - Reuse `ProgressRecord` in Web Cmdlets to reduce the GC overhead. (PowerShell#3411) (Thanks to @iSazonov!) * Cmdlet updates - Use `ShellExecute` with `Start-Process`, `Invoke-Item`, and `Get-Help -Online` so that those cmdlets use standard shell associations to open a file/URI. This means you `Get-Help -Online` will always use your default browser, and `Start-Process`/`Invoke-Item` can open any file or path with a handler. (Note: there are still some problems with STA threads.) (PowerShell#3281, partially fixes PowerShell#2969) - Add `-Extension` and `-LeafBase` switches to `Split-Path` so that you can split paths between the filename extension and the rest of the filename. (PowerShell#2721) (Thanks to @powercode!) - Implement `Format-Hex` in C# along with some behavioral changes to multiple parameters and the pipeline. (PowerShell#3320) (Thanks to @MiaRomero!) - Add `-NoProxy` to web cmdlets so that they ignore the system-wide proxy setting. (PowerShell#3447) (Thanks to @TheFlyingCorpse!) - Fix `Out-Default -Transcript` to properly revert out of the `TranscribeOnly` state, so that further output can be displayed on Console. (PowerShell#3436) (Thanks to @PetSerAl!) - Fix `Get-Help` to not return multiple instances of the same help file. (PowerShell#3410) * Interactive fixes - Enable argument auto-completion for `-ExcludeProperty` and `-ExpandProperty` of `Select-Object`. (PowerShell#3443) (Thanks to @iSazonov!) - Fix a tab completion bug that prevented `Import-Module -n<tab>` from working. (PowerShell#1345) * Cross-platform fixes - Ignore the `-ExecutionPolicy` switch when running PowerShell on non-Windows platforms because script signing is not currently supported. (PowerShell#3481) - Standardize the casing of the `PSModulePath` environment variable. (PowerShell#3255) * JEA fixes - Fix the JEA transcription to include the endpoint configuration name in the transcript header. (PowerShell#2890) - Fix `Get-Help` in a JEA session. (PowerShell#2988)
v6.0.0-alpha.17 release of PowerShellCore Here are the major changes: - Update PSRP client libraries for Linux and Mac. - We now support customer configurations for Office 365 interaction, as well as NTLM authentication for WSMan-based remoting from Linux (more information [here](https://github.com/PowerShell/psl-omi-provider/releases/tag/v1.0.0.18)). (PowerShell#3271) - We now support remote step-in debugging for `Invoke-Command -ComputerName`. (PowerShell#3015) - Use prettier formatter with `ConvertTo-Json` output. (PowerShell#2787) (Thanks to @kittholland!) - Port `*-CmsMessage` and `Get-PfxCertificate` cmdlets to Powershell Core. (PowerShell#3224) - `powershell -version` now returns version information for PowerShell Core. (PowerShell#3115) - Add the `-TimeOut` parameter to `Test-Connection`. (PowerShell#2492) - Add `ShouldProcess` support to `New-FileCatalog` and `Test-FileCatalog` (fixes `-WhatIf` and `-Confirm`). (PowerShell#3074) (Thanks to @iSazonov!) - Fix `Test-ModuleManifest` to normalize paths correctly before validating. - This fixes some problems when using `Publish-Module` on non-Windows platforms. (PowerShell#3097) - Remove the `AliasProperty Count` defined for `System.Array`. - This removes the extraneous `Count` property on some `ConvertFrom-Json` output. (PowerShell#3231) (Thanks to @PetSerAl!) - Port `Import-PowerShellDatafile` from PowerShell script to C#. (PowerShell#2750) (Thanks to @powercode!) - Add `-CustomMethod` paramter to web cmdlets to allow for non-standard method verbs. (PowerShell#3142) (Thanks to @lee303!) - Fix web cmdlets to include the HTTP response in the exception when the response status code is not success. (PowerShell#3201) - Expose a process' parent process by adding the `CodeProperty Parent` to `System.Diagnostics.Process`. (PowerShell#2850) (Thanks to @powercode!) - Fix crash when converting a recursive array to a bool. (PowerShell#3208) (Thanks to @PetSerAl!) - Fix casting single element array to a generic collection. (PowerShell#3170) - Allow profile directory creation failures for Service Account scenarios. (PowerShell#3244) - Allow Windows' reserved device names (e.g. CON, PRN, AUX, etc.) to be used on non-Windows platforms. (PowerShell#3252) - Remove duplicate type definitions when reusing an `InitialSessionState` object to create another Runspace. (PowerShell#3141) - Fix `PSModuleInfo.CaptureLocals` to not do `ValidateAttribute` check when capturing existing variables from the caller's scope. (PowerShell#3149) - Fix a race bug in WSMan command plugin instance close operation. (PowerShell#3203) - Fix a problem where newly mounted volumes aren't available to modules that have already been loaded. (PowerShell#3034) - Remove year from PowerShell copyright banner at startup. (PowerShell#3204) (Thanks to @kwiknick!) - Fixed spelling for the property name `BiosSerialNumber` for `Get-ComputerInfo`. (PowerShell#3167) (Thanks to @iSazonov!)
PreviousNext