Commit Graph
10092 Commits
Author SHA1 Message Date
Dmitry Volodin 51da40a9fd Apply IDE0019: InlineAsTypeCheck in Microsoft.WSMan folder (#19690) 2023-05-25 08:19:14 +05:00
PowerShell Team Bot 9e16fc8cf6 Update the cgmanifest (#19697) 2023-05-24 11:24:30 -07:00
Dmitry Volodin 1c55e02df4 Apply IDE0019: InlineAsTypeCheck in Microsoft.Management (#19687) 2023-05-24 17:26:40 +05:00
Dmitry Volodin 368a1ea372 Apply IDE0019: InlineAsTypeCheck in Microsoft.PowerShell folder (#19689) 2023-05-24 17:23:23 +05:00
PowerShell Team Bot fbc64e4818 Update experimental-feature json files (#19698) 2023-05-23 11:21:27 -07:00
Jakub Jareš d8decdc194 Fix slow execution when many breakpoints are used (#14953) 2023-05-22 17:11:53 -07:00
dependabot[bot] e1aacd7bdd Bump Microsoft.CodeAnalysis.CSharp from 4.6.0-1.final to 4.6.0 (#19667) 2023-05-22 17:08:03 -07:00
dependabot[bot] 86ed508be2 Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 (#19668) 2023-05-22 17:07:32 -07:00
James Truher [MSFT] d9697f07ba Add a public API for getting locations of PSModulePath elements (#19422) 2023-05-22 17:02:31 -07:00
Paul Higinbotham e5728b63bf Add WDAC Audit logging (#19641) 2023-05-22 16:40:55 -07:00
Christopher Yeleighton b69cae01f8 Pass -UserScope as required by RunUpdateHelpTests (#13400) 2023-05-22 16:34:53 -07:00
Frode Flaten c57ada217d Filter completion for enum parameter against ValidateRange attributes (#17750) 2023-05-22 14:25:00 -07:00
06ab3b189d Improve path completion (#19489)
* Improve path completion

* Update src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

* Address initial feedback from Steve and Paul

* Apply suggestions from code review

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Ilya <darpa@yandex.ru>

* Apply suggestions from iSazonov.

* Add missing period to comment.

* Add comment explaining limitations of current approach.

* Correct some escaping issues and add tests

---------

Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
Co-authored-by: Ilya <darpa@yandex.ru>
2023-05-22 11:10:59 -07:00
CarloToso 371abc5442 Small cleanup Invoke-RestMethod (#19490) 2023-05-22 09:02:01 +05:00
Aishat Adeladun Adewoyin 173d7061d8 Correct capitalization in readme (#19666) 2023-05-19 09:41:03 -07:00
James Truher [MSFT] c444645b09 Change how 'isPreview' is determined for default cmdlets tests (#19650) 2023-05-15 10:25:12 -07:00
MartinGC94 2e2b7db092 Fix wildcard globing in root of device paths (#19442) 2023-05-15 10:15:05 -07:00
PowerShell Team Bot 6a05ccbef9 Update to the latest NOTICES file (#19644) 2023-05-14 23:08:28 -07:00
Aditya Patwardhan fef05d1a9b Skip file signature tests on 2012R2 where PKI cmdlet do not work (#19643) 2023-05-11 15:50:29 -07:00
James Truher [MSFT] a533cefc8b Change logic for testing missing or extra cmdlets. (#19635) 2023-05-11 14:07:56 -07:00
MartinGC94 bb3c8a2819 Fix an indexing out of bound error in CompleteInput for empty script input (#19501) 2023-05-10 13:56:33 -07:00
Aditya Patwardhan 7144ec707d Add ProductCode in registry for MSI install (#19590)
* Add ProductCode in registry for MSI install

* Add test for validating ProductCode regkey is created

* Add test better validation
2023-05-10 05:36:34 +00:00
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