Commit Graph
1226 Commits
Author SHA1 Message Date
Jordan BoreanandPatrick Meinecke ce76ae1def Fix debug tracing error with magic extents (#25726)
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
2025-07-15 13:42:09 -04:00
Jordan Borean c6329ddd54 Add MethodInvocation trace for overload tracing (#21320) 2025-07-14 15:42:14 -07:00
Justin Grote 8185a7f23e Improve verbose and debug logging level messaging in web cmdlets (#25510) 2025-06-11 09:50:26 +05:00
Tadas Medišauskas b3bc4ff4e0 Use absolute path in FileSystemProvider.CreateDirectory (#24615) 2025-05-13 11:29:48 +05:00
GameMicrowave fcc1833963 Treat -Target as literal in New-Item (#25186) 2025-05-12 16:22:29 +05:00
MartinGC94 2fc4821e53 Revert "Allow empty prefix string in 'Import-Module -Prefix' to override default prefix in manifest (#20409)" (#25462) 2025-04-28 08:34:49 +05:00
Jordan Borean 352fd38c3b Update Get-Service to ignore common errors when retrieving non-critical properties for a service (#24245) 2025-04-21 14:17:11 -07:00
Armaan Mcleod 48c34fc3a7 Convert -ChildPath parameter to string[] for Join-Path cmdlet (#24677) 2025-03-18 09:44:06 +05:00
Dongbo Wang 6e428a8820 Set standard handles explicitly when starting a process with -NoNewWindow (#25061) 2025-03-03 16:17:16 -08:00
MartinGC94 b8ed5be26d Allow empty prefix string in 'Import-Module -Prefix' to override default prefix in manifest (#20409) 2025-02-27 17:40:40 +00:00
Matěj Kafka 9071eac574 Stringify ErrorRecord with empty exception message to empty string (#24949) 2025-02-10 11:43:10 +05:00
Kris Borowinski 8854c00ec2 Fix New-Item -Force to error on invalid directory name (#24936) 2025-02-07 22:32:23 +05:00
Kris Borowinski 0beb24e10f Fix Start-Transcript error when $Transcript is a PSObject wrapped string (#24963) 2025-02-07 22:23:05 +05:00
Ryan Yates 61e9f5dcc2 Return correct FileName property for Get-Item when listing alternate data streams (#18019) 2025-01-02 16:45:57 +05:00
MartinGC94 c066cd85aa Add ExcludeModule parameter to Get-Command (#18955) 2024-12-31 00:06:28 +05:00
Armaan Mcleod 10d1785030 Update DnsNameList for X509Certificate2 to use X509SubjectAlternativeNameExtension.EnumerateDnsNames Method (#24714) 2024-12-29 15:21:50 +05:00
Armaan Mcleod b5fbe9e613 Fix Get-ItemProperty to report non-terminating error for cast exception (#21115) 2024-12-27 09:09:32 +05:00
Brendan Burns 90b0149805 Fix a bug in how Write-Host handles XmlNode object (#24669) 2024-12-13 10:24:02 -08:00
Matej Kafka b18eacaa83 Resolve symbolic link target relative to the symbolic link instead of the working directory (#15235) (#20943) 2024-12-03 15:00:00 -08:00
Jordan Borean 22beba4a47 Fix up buffer management getting network roots (#24600)
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
2024-11-26 11:59:34 +05:00
2d092b1ea6 Bring changes from v7.5.0-preview.5 Release Branch to Master (#24369)
* Merged PR 32689: Fix typo in release-MakeBlobPublic.yml

Fix typo in release-MakeBlobPublic.yml

* Merged PR 32696: Fixed Test Scenario for Compress-PSResource

The test was failing because a relative path was provided to parameter -DestinationPath.
Should update Compress-PSResource to accept relative paths for -DestinationPath.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix for a failing test scenario.

#### PR Summary
This pull request fixes the test scenario for the `Compress-PSResource` function.
- `Microsoft.PowerShell.PSResourceGet.Tests.ps1`: Updated the path resolution for `$PublishedNupkgs` using `Resolve-Path` and added a missing line break in the test for compressing a module.

* Merged PR 32709: Changelog for v7.5.0-preview.5

Added 7.5.0-preview.5 change log

----
Changelog update for the new preview release.
This pull request updates the changelog for the v7.5.0-preview.5 release, documenting breaking changes, engine updates, new features, and other improvements.
- `ConvertTo-Json`: Treat large Enum values as numbers.
- `Import-Module`: Fix processor architecture validation.
- `Resolve-Path` and `Convert-Path`: Add `-Force` parameter to support wildcard hidden files.
- `PSResourceGet` test: Fix cleanup.
- Various build and packaging improvements, including updates to dependencies and test scenarios.

* added ks2 to release pipeline

* Merged PR 32752: Copy global tools to static site

Rather than an intermediate folder that must be manually copied into the static site.

----
#### AI description  (iteration 1)
#### PR Classification
Code modification to enhance functionality.

#### PR Summary
This pull request updates the release pipeline to copy global tools to a static site.
- Changes in `/.pipelines/templates/release-MakeBlobPublic.yml` to set `prefix` and `destinationPrefix` for blob copying.
- Adjusted destination container name to use `$web` and updated blob naming conventions.

* Merged PR 32759: Switch to single quotes for container name in global tool copy

#### AI description  (iteration 1)
#### PR Classification
Code cleanup

#### PR Summary
This pull request updates the container name string to use single quotes for consistency.
- Changes in `/.pipelines/templates/release-MakeBlobPublic.yml` to switch `$destinationContainerName` from double quotes to single quotes.

* Added condition for make blob public

* moved conditional from global tools to copy

* conditional as a paramter instead of var

* removed dependency

* blob folder name to release Tag

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Justin Chung <t-juchung@microsoft.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-03 21:32:33 +00:00
Aditya Patwardhan b9c0127e83 Fix cleanup in PSResourceGet test (#24339) 2024-09-24 14:10:01 -07:00
alerickson 669d9e384e Update Microsoft.PowerShell.PSResourceGet to 1.1.0-preview2 (#24300) 2024-09-23 14:58:24 -07:00
Jordan Borean 3e3d83cfa4 Treat large Enum values as numbers in ConvertTo-Json (#20999) 2024-09-19 17:24:20 +00:00
Steve Lee 4a47d3582e Fix how processor architecture is validated in Import-Module (#24265) 2024-09-10 12:59:40 -07:00
Steve Lee 9ceae0c544 Add support to Get-Error to handle BoundParameters (#20640)
* Add support to `Get-Error` to handle BoundParameters

* sort the keys

* change to generalize for all dictionaries

* address Patrick's comment to generalize and use one codepath for dictionaries

* address codefactor
2024-08-26 19:25:16 -04:00
Armaan Mcleod 07f0798026 Add -Force parameter to Resolve-Path and Convert-Path cmdlets to support wildcard hidden files (#20981)
* Added -Force parameter to Resolve-Path

* Added -Force parameter to Convert-Path

* Added tests

* Handle hidden file prefix for unix

* Use OS automatic variables and cleanup test setup code

* Add missing file prefix
2024-08-19 18:16:32 -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