Commit Graph
37 Commits
Author SHA1 Message Date
Jordan Borean c6329ddd54 Add MethodInvocation trace for overload tracing (#21320) 2025-07-14 15:42:14 -07: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
Jordan Borean dd1fb9167f Fix tab completion for env/function variables (#25346) 2025-04-12 11:04:18 +05:00
Jordan Borean 93e053c57e Add PipelineStopToken to Cmdlet which will be signaled when the pipeline is stopping (#24620) 2025-03-24 14:36:05 -07:00
Jordan Borean 05214da717 Fix tooltip for variable expansion and include desc (#25112) 2025-03-03 09:23:24 +05:00
Jordan Borean 4e7942135f Fix Start-Process -Wait polling (#24711) 2025-01-28 13:52:48 +05:00
Jordan Borean 7cc8a9ad32 Emit ProgressRecord in CLIXML minishell output
Instead of never emitting a ProgressRecord if stdout is redirected, continue to emit the CLIXML serialized record when pwsh was started with -OutputFormat xml regardless of redirection. This allows calling processes to receive the progress record from the spawned process when it captures the output.
2024-12-11 20:22:43 -05:00
Jordan Borean 294adb47f1 Add support for interface static abstract props
Add support for writing a PowerShell class that can implement an
interface that contains a static abstract property introduced in C# 11.
2024-12-10 14:02:11 -05:00
Jordan Borean 06e2093e8c Change call to optional add in the binder expression 2024-12-09 14:35:05 -05:00
Jordan Borean 89921dd500 Turn off AMSI member invocation on nix release builds
Turn off the AMSI member invocation logging for non-Windows release
builds. This is slightly more efficient as there's no extra work to
create the AMSI string.
2024-12-09 14:35:05 -05:00
Jordan Borean 1e07bd0cb5 Add error for Get-PSSession -ComputerName on Unix (#21009) 2024-12-05 16:26:57 +05:00
Jordan BoreanandIlya 8aea111930 Update src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan BoreanandIlya ad8d13b2ac Apply suggestions from code review
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan Borean 82341b0e3b Add remote runspace check for PushRunspace
Add explicit exception when attempting to call PushRunspace on a
runspace that is not remote. Instead of failing with a hard to
understand NullReferenceException an ArgumentException is raised with
information about what went wrong.
2024-12-04 11:13:47 -05: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
Jordan Borean ba238808fb Support PSObject wrapped values in ArgumentToEncodingTransformationAttribute (#24555) 2024-11-12 08:41:22 +05:00
Jordan Borean 3e3d83cfa4 Treat large Enum values as numbers in ConvertTo-Json (#20999) 2024-09-19 17:24:20 +00:00
Jordan Borean c9bd109686 Fix Hyper-V Remoting when the module is imported via implicit remoting (#24032) 2024-08-01 11:19:47 -07:00
Jordan Borean c107c9c66b Set-Acl: Do not fail on untranslatable SID (#21096) 2024-07-15 18:33:41 -07:00
Jordan Borean ecdf7805ca Fix up .NET method invocation with Optional argument (#21387) 2024-07-01 15:46:39 -07:00
Jordan Borean 720f145e28 Fix progress calculation on Remove-Item (#23869) 2024-07-01 15:40:49 -07:00
Jordan Borean ab43c19390 Improve .NET overload definition of generic methods (#21326) 2024-07-01 14:03:01 -07:00
Jordan Borean 6c66879c92 Optimize the += operation for a collection when it's an object array (#23901) 2024-06-17 16:23:04 -07:00
Jordan Borean 588dff61a1 Fix the error when using Start-Process -Credential without the admin privilege (#21393) 2024-04-15 10:34:52 -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
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
Jordan Borean 43333bc80e Ensure filename is not null when loggin WDAC ETW events (#20910) 2023-12-13 12:17:04 -08: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
Jordan Borean efc7385c50 Fix Start-Process -Wait with -Credential (#19096)
Allows a non-administrator user to be able to -Wait on a Start-Process
call with a custom credential specified.
2023-03-06 10:31:16 -08:00
Jordan Borean 6fa7260db9 Fix the process CommandLine on Linux (#18710) 2022-12-02 10:23:00 -08:00
Jordan Borean d66b2a5b52 Fix Parent property on processes with complex name (#17545) 2022-09-28 21:43:40 -07:00
Jordan Borean 135e94d6cb Migrate WinTrust functions to a common location (#17598) 2022-08-08 15:49:29 -07:00
Jordan Borean 9a9c7666e7 Set-AuthenticodeSignature hash default to SHA256 (#17560) 2022-07-07 17:33:12 +05:00
Jordan Borean 3d1d0524ca Remove the use of BinaryFormatter in PSRP serialization (#17133) 2022-05-17 09:19:58 -07:00
Jordan Borean 5fe17baa3b Relax further SSL verification checks for WSMan on non-Windows hosts with verification available (#13786) 2020-10-16 09:57:42 -07:00