Commit Graph
1201 Commits
Author SHA1 Message Date
Aditya Patwardhan 8ff65501a4 Treat large Enum values as numbers in ConvertTo-Json (#20999) (#24304) 2024-09-20 14:55:44 -07:00
Aditya Patwardhan 95850df6e9 Fix how processor architecture is validated in Import-Module (#24265) (#24317) 2024-09-20 12:42:16 -07:00
alerickson 8c98b5cf60 Bump PSResourceGet to 1.1.0-preview1 (#24129) 2024-08-14 14:50:54 -07:00
Travis PlunkandJames Truher [MSFT] c11e4cf0d1 Move to 9.0.0-preview.6.24327.7 (#24133)
---------

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>
2024-08-13 10:18:39 -07:00
Justin Chung 13e9aac36f Fix Invoke-RestMethod to allow -PassThru and -Outfile work together (#24086) 2024-08-05 12:23:47 -07:00
Armaan Mcleod b39b5f4252 Add ConvertTo-CliXml and ConvertFrom-CliXml cmdlets (#21063) 2024-07-26 22:12:44 +05:00
Justin Chung 9995125454 Add OutFile property in WebResponseObject (#24047) 2024-07-23 21:04:20 +00:00
Jordan Borean c107c9c66b Set-Acl: Do not fail on untranslatable SID (#21096) 2024-07-15 18:33:41 -07:00
Steve Lee 2d83b95539 Fix Move-Item to throw error when moving into itself (#24004) 2024-07-08 23:53:17 +00:00
CarloToso 86a7262a71 Fix WebCmdlets when -Body is specified but ContentType is not (#23952) 2024-07-01 15:35:23 -07:00
Armaan Mcleod ec3840d6a1 Add IgnoreComments and AllowTrailingCommas options to Test-Json cmdlet (#23817) 2024-06-24 13:03:22 +05:00
167a492415 Redirecting to a variable should be possible (#20381)
* add tests

* fix formatting issues

* Make redirection to variable an experimental feature.

Update test to check for experimental feature status.
Set-Variable will still have the -append parameter, but if used when the experimental feature is disabled, a parameter binding error will result.

* Check to be sure provider is not null.

* update to use different FullyQualifiedErrorId

* use Experimental attribute for append parameter rather than runtime check.

* Revert "update to use different FullyQualifiedErrorId"

This reverts commit 8b34af1ac19ecdb821b34534e446ab129830c92f.

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

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

* Move remediation steps into resource.

Update Set-Variable -Append to be correct when -name and -value are used.
Add tests for the new behavior in Set-Variable.

* Change expected error for contrained language mode and redirection.

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

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

* Support redirection of native app.

Add tests to validate.

* testexe needs proper case to run on linux.

* Address codefactor issues 01.

* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs

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

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

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

* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs

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

---------

Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Steve Lee <slee@microsoft.com>
2024-06-11 12:42:04 -04:00
James Truher [MSFT] 0be73f1a42 Add debugging to the MTU size test (#21463) 2024-05-21 13:45:07 -07:00
Steve Lee 371ceff3b5 Fix Test-Path -IsValid to check for invalid path and filename characters (#21358) 2024-04-02 09:42:40 -07:00
Jordan Borean 4e2682920a Get-Process: Remove admin requirement for -IncludeUserName (#21302) 2024-03-04 21:48:19 -08:00
Jordan Borean fcf4953c3b ConvertTo-Json: Serialize BigInteger as a number (#21000) 2024-02-27 14:52:58 -08:00
Steve Lee 05ed2f270c Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" (#21049) 2024-02-26 11:51:12 -08:00
Steve Lee a880377d8a Fix a regression in Format-Table when header label is empty (#21156) 2024-02-26 11:44:30 -08:00
Jordan Borean 71035543e7 ConvertFrom-Json: Add -DateKind parameter (#20925)
Adds the -DateKind parameter to the ConvertFrom-Json that allows the
caller to control how DateTime strings are converted into an object. The
default behaviour is to create a DateTime value with the Kind being
Unspecified if no TZ is set, Utc if the TZ Z is set, Local (after
conversion) if an explicit TZ is set. This adds a Utc, Local to
explicitly set the Kind as desired as well as a Offset and String value
to create a DateTimeOffset or keep as a string.
2024-02-13 09:05:07 +05:00
Jordan Borean 4f02a89906 Fix Get-Error serialization of array values (#21085)
Ensure Get-Error does not hang when attempting to serialize an exception
that contains a property whose type is an array of System.Type
instances. Also ensures that primitive types like System.Int32,
System.Boolean as well as System.String is formatted as a string rather
than an object with properties.
2024-01-24 08:41:18 +05:00
CarloToso 68204ae14f Fix regression -Tail 0 -Wait (#20734) 2024-01-11 11:49:31 +05:00
dxk3355 71ae6070c2 Test-FileCatalog changes to use File.OpenRead to better handle when the file is executing or open Fix #20703 (#20939) 2023-12-21 22:28:36 +05:00
Armaan Mcleod 103c945c32 Fix -OlderThan/-NewerThan parameters for Test-Path when using PathType and date range (#20942) 2023-12-20 22:32:57 +05:00
Chaz Beck 3eda139723 Fix Start-Process -PassThru to make sure the ExitCode property is accessible for the returned Process object (#20749) 2023-12-07 19:11:28 +00:00
Matthias Wolf ac84c35820 Fix regression in #20608. (#20745) 2023-11-30 10:13:06 +05:00
Steve Lee 14245e0405 Fix rendering of DisplayRoot for network PSDrive (#20793) 2023-11-29 14:08:11 +05:00
Anam Navied 9ff866d908 Update PSResourceGet version for 1.0.1 release (#20652) 2023-11-09 11:01:11 -08:00
Patrick Meinecke d3c91d0e63 Added a missing ConfigureAwait(false) call (#20606) 2023-11-01 12:42:28 -07:00
Thomas Nieto 4621c9e571 Change New-FileCatalog -CatalogVersion default to 2 (#20428) 2023-10-16 15:26:31 -07:00
Steve Lee 4fd4522b84 Suppress error output from Set-Location tests (#20499) 2023-10-16 19:46:59 +00:00
James Truher [MSFT] 81a7f6f621 Fix unixmode to handle setuid and sticky when file is not an executable (#20366) 2023-10-11 23:54:54 +00:00
Dongbo Wang 109c2425ac Bump PSReadLine from 2.2.6 to 2.3.4 (#20305) 2023-10-03 11:28:44 -07:00
Steve Lee 9ebeca3d6e Fix implicit remoting proxy cmdlets to act on common parameters (#20367) 2023-09-26 16:07:00 -07:00
Ikko Eltociear Ashimine 78cbbc3a02 Fix typo in FileCatalog.Tests.ps1 (#20329)
existant -> existent
2023-09-26 08:27:28 +05:00
James Truher [MSFT] 3f3d79d475 Continued improvement to tests for release automation (#20182) 2023-09-06 10:36:48 -07:00
Aditya Patwardhan ddb3b5ff4c Skip the test on x86 as InstallDate is not visible on Wow64 (#20165) 2023-08-29 12:46:53 -07:00
James Truher [MSFT] a469783e76 Harden some problematic release tests (#20155) 2023-08-28 10:55:25 -07:00
CarloToso 344ac7b08a New-Guid add -Empty and -InputObject parameters (#20014) 2023-08-28 09:33:55 -07:00
James Truher [MSFT] 046301b716 Additional test hardening for tests which fail in release pass. (#20093) 2023-08-16 11:28:59 -07:00
James Truher [MSFT] 91447e62de Fixes for release tests (#20028) 2023-07-27 15:04:30 -07:00
CarloToso e8ce6a5b1f Support Unix-Socket in WebCmdlets (#19343) 2023-07-24 16:44:32 -07:00
MartinGC94 3f128d680f Change how relative paths in Resolve-Path are handled when using the RelativeBasePath parameter (#19755) 2023-07-24 09:47:24 -07:00
dwtaber 3b9e70cfc8 Wait-Process: add -Any and -PassThru parameters (#19423) 2023-07-24 09:46:16 -07:00
Armaan Mcleod 836c0c580b Added -CaseInsensitive switch parameter to Select-Object & Get-Unique cmdlets (#19683)
* Added Select-Object CaseInsensitive parameter and tests

* Added Get-Unique CaseInsensitive parameter and tests

* Fix codefactor issue

* Add named arguements

* Remove comments
2023-07-24 09:34:42 -07:00
Sean Wheeler 5595072568 Change docs.microsoft.com to learn.microsoft.com (#19994) 2023-07-17 15:54:17 -07:00
Steve Lee 5a6c66be13 Restore-Computer and Stop-Computer should fail with error when not running via sudo on Unix (#19824) 2023-07-17 14:20:06 -07:00
Armaan Mcleod d24285f437 Remove input text from the error message resulted by SecureString and PSCredential conversion failure (#19977) 2023-07-17 10:30:10 -07:00
James Truher [MSFT] ee13bb9f05 Add more debugging to try to determine why these test fail in release build. (#19829) 2023-07-05 07:40:30 -07:00
CarloToso cb2848c19b Code cleanup for Get-Content to make -Head and -Tail disallow negative values (#19715) 2023-06-21 09:35:18 -07:00
MartinGC94 15213d8494 Do not require activity when creating a completed progress record (#18474) 2023-06-19 16:20:08 -07:00