Commit Graph
10070 Commits
Author SHA1 Message Date
Steven Bucher 65327256bf Updated the public dashboard link (#19634) 2023-05-09 16:16:06 -07:00
MartinGC94 dc81491870 Improve variable completion performance (#19595) 2023-05-09 15:04:44 -07:00
PowerShell Team Bot da2a98cdad Update the cgmanifest (#19631) 2023-05-09 12:57:43 -07:00
Dominik Kaszewski 270f8f1be7 Allow partial culture matching in Update-Help (#18037) 2023-05-09 09:46:59 -07:00
Steve Lee 7888196b87 Add specific error message that creating Junctions requires absolute path (#19409) 2023-05-09 08:37:28 -07:00
xtqqczze d314b0b1c0 Fix incorrect test cases in ExecutionPolicy.Tests.ps1 (#19485) 2023-05-09 00:12:07 +00:00
MartinGC94 1c8b58c0b4 Fix array type parsing in generic types (#19205) 2023-05-08 16:21:51 -07:00
CarloToso 0b078175da Improve the verbose message of WebCmdlets to show correct HTTP version (#19616) 2023-05-08 16:00:04 -07:00
mkht 9502931493 Fix HTTP status from 409 to 429 for WebCmdlets to get retry interval from Retry-After header. (#19622) 2023-05-08 15:57:27 -07:00
facbfd6a64 Runas format changed (#15434)
* runas changed

* Update assets/wix/Product.wxs

---------

Co-authored-by: Krishna Yalavarthi <kryalava@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2023-05-08 13:14:05 -07:00
xtqqczze 19623357ad Remove minor versions from PSCompatibleVersions (#18635) 2023-05-08 12:37:42 -07:00
Staffan Gustafsson 33dc1a8fae Fixing structure typo in test setup (#17458) 2023-05-08 11:56:01 -07:00
Greg Dennis 4b261ecdb6 Update JsonSchema.Net version to 4.1.0 (#19610) 2023-05-08 10:25:10 -07:00
PowerShell Team Bot 4584d2f775 Update to the latest NOTICES file (#19620) 2023-05-08 09:09:28 -07:00
Sean Wheeler 9662f028f6 Update working-group-definitions.md (#19561) 2023-05-04 13:23:11 -07:00
PowerShell Team Bot f179017ada Update the cgmanifest file (#19613) 2023-05-04 12:01:27 -07:00
Patrick Meinecke 16c6030f06 Fix the check when reading input in NativeCommandProcessor (#19614) 2023-05-04 12:00:18 -07:00
Steve Lee 9d36e139bc For Preview releases, add pwsh-preview.exe alias to MSIX package (#19602)
* For Preview releases, add `pwsh-preview.exe` alias to MSIX package

* add ability to produce private msix pkg for testing
2023-05-04 09:51:16 -07:00
Steve Lee bfa6883f2a Add support of respecting $PSStyle.OutputRendering on the remote host (#19601) 2023-05-04 09:50:04 -07:00
Greg Dennis 1b248efb3f Test-Json: Use JsonSchema.Net (System.Text.Json) instead of NJsonSchema (Newtonsoft.Json) (#18141)
Updates the Test-Json cmdlet to use JsonSchema.Net instead of NJsonSchema in order to:

- use System.Text.Json instead of Newtonsoft
- support the latest JSON Schema drafts (up to 2020-12)
2023-05-04 08:19:32 +05:00
PowerShell Team Bot aa9a88fc33 Update to the latest NOTICES file (#19605) 2023-05-03 14:36:06 -07:00
07e041fe10 Allow combining of -Skip and -SkipLast parameters in Select-Object cmdlet. (#18849)
* Added SkipLast parameter set to Skip parameter and updated tests

* Using Should -BeExactly with string

* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Travis Plunk <github@ez13.net>
2023-05-02 13:07:32 -07:00
Steve Lee 8135167827 Fix constructing PSModulePath if a sub-path has trailing separator (#13147)
* Fix constructing PSModulePath if a sub-path has trailing separator

* skip test on Linux

* Removed test as the system env var needs to be modified to repro

* Add test

* Fix test by comparing against incorrectly created path

* Update test to be cross platform
2023-05-02 13:04:30 -07:00
Steve LeeandJames Truher [MSFT] a153446a01 Add Get-SecureRandom cmdlet (#19587)
* Add `Get-SecureRandom` cmdlet

* update comments

* address Paul and Travis' comments

* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Get-SecureRandom.Tests.ps1

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>

* address codefactor

* address Ilya's feedback creating a base class for both cmdlets

* remove unused `using`

---------

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>
2023-05-02 10:54:39 -07:00
Ikko Eltociear Ashimine 5d7b3fc453 Fix a typo in serialization.cs (#19598) 2023-05-02 09:41:27 -07:00
Olivia 05fbceb48c Fix New-Item to re-create Junction when -Force is specified (#18311) 2023-05-02 09:36:33 -07:00
xtqqczze c77c286d7a Remove PSv2CompletionCompleter as part of the PowerShell v2 code cleanup (#18337) 2023-05-01 22:00:07 -07:00
MartinGC94 5605b24b08 Improve Hashtable key completion for type constrained variable assignments, nested Hashtables and more (#17660) 2023-05-01 16:26:41 -07:00
Dominik Kaszewski ea68edc686 Set-Clipboard -AsOSC52 (#18222)
* Set remote clipboard using OSC52

* Fix codefactor comment

* Rename parameter from Using to As

* Rename alias
2023-05-01 14:53:31 -07:00
Jack CaseyandTravis Plunk 698742ea9f Test-Connection: Increase output detail when performing a tcp test (#11452)
* Added verbose TCP test logic

* Cleaned up output, removed source IP address

* Consolidated detailed output logic into ProcessConnectionByTCPPort()

* Updated existing tests with -Quiet switch

* Improved output formatting, changed logic to match

* Error handling and logic improvements

* Updated tests to match new output

* Updated logic, tcp tests now run once by default

* Moved TcpConnectionTestResult enum into TcpTestStatus class

* Removed unnecessary whitespace

* Wrapped TcpClient() in Using statement

* Appended missing period on comments

* Change TcpTestStatus to TcpPortStatus for better clarity

* Set default count back to 4

* Move stopwatch reset into finally block

* Change TcpConnectionTestResult.New to TcpConnectionTestResult.None

* Formatting fixes

* Increase column size for Result output

* Update logic for -quiet option

* Change "TestNum" property to "Id"

* Change Destination and DestinationAddress to Target and TargetAddress in TcpPortStatus

* Implement new form of using declaration

* Fix indentation

* Update output, improve logic and update tests

* Add CancellationToken to allow cancel before timeout

* Assign testResult.Connected to client.Connected

* Move TcpPortStatus object creation to after connection test

* Remove delay from final connection test in loop

* Move Count logic from ProcessConnectionByTCPPort into own function

* Fix small formatting error

* Add handling for TaskCanceledException

* Remove redundant CancellationToken getter

* Clean up handling of SocketException

* Increase readability of final loop check

* Remove unnecessary TimeSpan invocation

* Rename cancellationTokenSource to match convention

* Move SetCountForTcpTest() into BeginProcessing()

* Added nameof to Count check

* Removed explicit type declaration for TcpClient

* Move delay and timeout evaluation out of the cycle

* Remove redundant CancellationTokenSource

* Initialize detailed SwitchParameter

* Add check for Detailed parameter

* Remove redundant tests for non-detailed output

* Add return after first boolean output

* Update tests with new detailed parameter set

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2023-05-01 14:16:11 -07:00
Travis PlunkandDongbo Wang a63487950f Add prompt to fix conflict during backport (#19583)
* Add prompt to fix conflicts

* Add function to backport all approved PRs

* Update tools/releaseTools.psm1

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>

* Update tools/releaseTools.psm1

---------

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2023-05-01 12:14:23 -07:00
xtqqczze 31bc65ef65 Refactor MUIFileSearcher.AddFiles in the help related code (#18825) 2023-05-01 11:43:04 -07:00
Aditya Patwardhan 72c81b820a Set SetLastError to true for symbolic and hard link native APIs (#19566) 2023-05-01 10:56:16 -07:00
PowerShell Team Bot 561365e67c Update the experimental-feature JSON files (#19588) 2023-05-01 10:53:28 -07:00
Patrick Meinecke 2424ad83aa Support byte stream piping between native commands and file redirection (#17857) 2023-04-27 17:17:32 -07:00
Andy Jordan 6e34b1b7ac Add Git mailmap for Andy Jordan (#19469)
This makes Git transparently remap commits under my prior name and email
to my new name and Microsoft email.
2023-04-26 11:33:28 -07:00
Travis Plunk cbe18db47b Add backport function to release tools (#19568)
* Add backport function

* delete backport action
2023-04-26 09:47:53 -07:00
Jordan Borean 93e9c63331 Fix Get-AuthenticodeSignature -Content to not roundtrip the bytes to a Unicode string and then back to bytes (#18774) 2023-04-25 12:11:04 -07:00
Aditya Patwardhan cf6fc53c9f Fix test failures on Windows for time zone and remoting (#19466) 2023-04-25 11:06:34 -07:00
CarloToso 543b20b4ed Enable more nullable annotations in WebCmdlets (#19359) 2023-04-24 08:38:30 +05:00
Steve Lee 3547acaa1c Add comment in wix detailing use of UseMU (#19371)
* remove `UseMU` reg value on uninstall of MSI

* change to a comment
2023-04-21 11:54:20 -07:00
Travis Plunk 232b6b1273 Verify that packages have license data (#19543) 2023-04-21 11:50:49 -07:00
Dongbo Wang b4f2e3ad8c Add an explicit manual stage for changelog update (#19551) 2023-04-20 17:34:32 -07:00
James Truher [MSFT] a7898d2886 Harden 'All approved Cmdlets present' test (#19530) 2023-04-20 16:14:09 -07:00
Dongbo Wang dadcf06565 Update the team member list in releaseTools.psm1 (#19544) 2023-04-20 15:56:31 -07:00
PowerShell Team Bot 4141592e4f Update to the latest NOTICES file (#19546) 2023-04-20 14:19:00 -07:00
Dongbo Wang 4064754008 Merge the release branch of the pre-release v7.4.0-preview.3 to master 2023-04-20 11:54:22 -07:00
Dongbo Wang 72e4732874 Update README.md and metadata.json for release v7.4.0-preview.3 (#19542) 2023-04-20 11:28:19 -07:00
stevenebutler 319c9faf57 Improve reliability of the Ctrl+c tests for WebCmdlets (#19532) 2023-04-20 09:40:01 -07:00
Dongbo Wang 2f8b74c45b Merged PR 25453: Update changelog for the v7.4.0-preview.3 release
Update changelog for the v7.4.0-preview.3 release
v7.4.0-preview.3
2023-04-19 23:39:32 +00:00