m1k0net
0067decae8
Fix Sort-Object -Stable -Unique to actually do stable sorting ( #17189 )
2022-04-26 16:58:37 -07:00
Dongbo Wang
b898da8842
Make a variable assignment in a ParenExpression to return the variable value ( #17174 )
2022-04-22 10:55:38 -07:00
Patrick Meinecke and Andrew Menagarishvili
1c568d42d8
Make NameObscurerTelemetryInitializer internal ( #17167 )
...
Making NameObscurerTelemetryInitializer internal
Co-authored-by: Andrew Menagarishvili <anmenaga@microsoft.com >
2022-04-21 09:54:50 -07:00
8d453da283
Use new Windows signature APIs from Microsoft.Security.Extensions package ( #17159 )
...
Co-authored-by: Anam Navied <anam.naviyou@gmail.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2022-04-20 21:26:57 +00:00
James Truher [MSFT]
84e73b2b45
Do not include node names when sending telemetry. ( #16981 )
2022-04-14 10:02:55 -07:00
Charlton Stanley
5134410d79
Correct Typo in the resource string PathResolvedToMultiple ( #17098 )
2022-04-12 16:46:23 -07:00
Ikko Ashimine
2bc1308772
Fix typo in ComRuntimeHelpers.cs ( #17104 )
2022-04-12 16:45:18 -07:00
Stéphane BARIZIEN
4acf6b39d4
Support forward slashes in network share (UNC path) completion ( #17111 ) ( #17117 )
2022-04-12 21:00:16 +05:00
Dongbo Wang
7cc9c87473
Do not generate clean block in proxy function when the feature is disabled ( #17112 )
2022-04-05 12:00:41 -07:00
Steve Lee
788ffde65c
Ignore failure attempting to set console window title ( #16948 )
2022-03-30 09:49:40 +05:00
Aditya Patwardhan
9fc0e80fb7
Update dotnetmetadata.json to accept .NET 7 preview 3 builds ( #17063 )
2022-03-25 16:15:16 -07:00
Steve Lee
72e3d719d8
Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks ( #16811 )
...
* Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks
* add CSI sequence and change default back to `host`
* fix test for default outputrendering
fix regex for CSI by escaping the question mark
* remove hyperlink support
2022-03-24 17:44:35 -07:00
MartinGC94
c904d7f376
Improve member auto completion ( #16504 )
2022-03-24 15:55:27 -07:00
MartinGC94
5e6e7ca449
Add OutputType attribute to various commands ( #16962 )
2022-03-24 15:54:08 -07:00
PRASOON KARUNAN V
94eeb8e423
Make Stop-Service only request needed privileges when not setting SDDL. ( #16663 )
...
* code changes to select permission based on input
* make the code more readable
2022-03-23 13:46:49 -07:00
MartinGC94
123373e425
Prioritize ValidateSet completions over Enums for parameters ( #15257 )
2022-03-23 12:38:05 -07:00
Paul Higinbotham
a6d04226c3
Add Custom Remote Connections Feature ( #17011 )
...
* Changes for custom remote connections
* Remove NamedPipeConnection dependency on RemoteSessionNamedPipe.
* Enable custom connection tests and tool build for all platforms
* Fix CustomConnection.Tests.ps1
* Fix tests attempt 1
* Fix tool build
* Move test to elevated
* Fix non-Windows pipe name
* Update test for non-Windows
* Skip broken non-Windows timer
* Add comment for skipped test
2022-03-23 08:04:07 -07:00
Dongbo Wang
8ad642013a
Remove EventLogLogProvider and its related legacy code ( #17027 )
2022-03-19 12:04:15 +05:00
Aleksandr Chebotov
9c44c1c8c5
Fix typos in names of method ( #17003 )
2022-03-18 14:01:16 -07:00
Aditya Patwardhan
1268a0a04f
Update .NET to 7.0.0-preview.2 build ( #16930 )
2022-03-18 09:10:53 -07:00
Ikko Ashimine
fa03f180e7
Fix a typo in CommandHelpProvider.cs ( #16949 )
...
non-existant -> non-existent
2022-03-11 16:12:21 -08:00
Dongbo Wang
25bc64f4b0
Allow a collection that contains Automation.Null elements to be piped to pipeline ( #16957 )
2022-03-04 16:16:28 -08:00
Dongbo Wang
a3c4a163ff
Allow the PSGetMemberBinder to get value of ByRef property ( #16956 )
2022-03-04 15:01:18 -08:00
MartinGC94
c196e2f793
Improve Hashtable completion in multiple scenarios ( #16498 )
2022-03-03 18:09:12 -08:00
Dongbo Wang
102782fbb0
Fix the parsing code for method generic arguments ( #16937 )
2022-03-03 09:21:21 -08:00
Paul Higinbotham
df460b7275
Add fix of process objects for processes that have exited. ( #16946 )
...
* Add fix for process objects for processes that have exited.
* Fix code factor
* Fix typo
* Add try/catch for possible race condition on exiting process.
2022-03-02 13:53:35 -08:00
Steven Bucher
ee6bc9527c
Add the module CompatPowerShellGet to the allow-list of telemetry modules ( #16935 )
2022-02-28 17:49:52 -08:00
Dongbo Wang
e1f52dda77
Refactor module assembly loading logic to allow the whole module to be loaded in a custom ALC ( #16889 )
2022-02-23 15:01:12 -08:00
Dongbo Wang
102e8285bb
Bump PSReadLine from 2.1.0 to 2.2.2 ( #16910 )
2022-02-23 11:36:46 -08:00
ayousuf23
31c14f2ad3
Updated background invocation & operator to use -WorkingDirectory when starting a new job ( #16180 )
2022-02-21 10:02:30 -08:00
dependabot[bot] and Travis Plunk
fbae40df83
Bump NJsonSchema from 10.5.2 to 10.6.9 ( #16888 )
...
* Bump NJsonSchema from 10.5.2 to 10.6.9
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema ) from 10.5.2 to 10.6.9.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases )
- [Commits](https://github.com/RicoSuter/NJsonSchema/compare/v10.5.2...v10.6.9 )
---
updated-dependencies:
- dependency-name: NJsonSchema
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update cgmanifest.json
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2022-02-16 11:01:54 -08:00
Aditya Patwardhan
77caf718cd
Update projects and scripts to use .NET 7 preview 1 pre-release builds ( #16856 )
...
* Update script to consume .NET 7 builds
* Update target framework
* Add dotnet metadata override value
* Update dependencies
* Update analyzer
* Conditionally add output argument
* Update files.wxs
* Fix tests
* Update Microsoft.PowerShell.Native to 7.3.0-preview.1
* Disable psget tests
* Update to latest build for .NET 7 preview 1
* Disable ready to run
* Update version of `Microsoft.AspNetCore.Mvc.NewtonsoftJson` package
* Update cgmanifest and startup test
2022-02-16 09:56:41 -08:00
ayousuf23 and Dongbo Wang
a9a235d469
Prevent tab completion if the word to complete is a single dash ( #16781 )
...
* added code to prevent tab completion if the word to complete is a single dash
* added a test for testing tab completion if the word to complete is a single dash
* Minor update and add comment
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2022-02-09 12:59:29 -08:00
Ilya
a5d41c2287
Use FindFirstFileW instead of FindFirstFileExW to correctly handle Unicode file names on FAT32 ( #16840 )
2022-02-05 07:13:14 -08:00
Dongbo Wang
35ad64e11b
Add a couple fixes to generic method invocation ( #16822 )
2022-02-03 11:58:02 -08:00
Dongbo Wang
bbb11dd07a
Fix the clean block for generated proxy function ( #16827 )
2022-02-03 11:39:08 -08:00
MartinGC94
7d3260fe0d
Add completion for loop labels after Break/Continue ( #16438 )
...
Adds completion for loop labels after labeled control flow statements such as Break and Continue.
The completion will look for any loops with a label that surrounds the Break/Continue keywords.
The tooltips for the completion entries shows the relevant loop.
2022-02-01 09:14:23 +05:00
Aditya Patwardhan
46e5af7381
Update .NET SDK to 6.0.101 and fix Microsoft.PowerShell.GlobalTool.Shim.csproj ( #16821 )
2022-01-31 16:36:49 -08:00
Ikko Ashimine
0ef30e54c7
Fix typo in PowerShellExecutionHelper.cs ( #16776 )
2022-01-28 16:04:34 +00:00
Joel Sallow (/u/ta11ow)
8c53252969
Add support to allow invoking method with generic type arguments ( #12412 )
2022-01-27 09:55:54 -08:00
Ilya
9f722ef950
Use more efficient platform detection API ( #16760 )
...
* Use more efficient platform detection API
Use static and const new OperatingSystem class API to avoid string comparisons and extra allocations.
* Remove unused variable
2022-01-27 08:53:52 -08:00
Brannen Hall
0302b1f48e
Support OpenSSH options for PSRP over SSH commands ( #12802 )
...
Add an -Options parameter to Invoke-Command and Start-PSSession to pass SSH options
Options parameter added to Invoke-Command
Options parameter added to Start-PSSession
Options parameter added to Enter-PSSession
Options parameter added to SSHConnection Hashtable
2022-01-22 11:59:58 +05:00
xtqqczze
f83660e0e6
Seal ClientRemotePowerShell ( #15802 )
...
Seal `System.Management.Automation.Runspaces.Internal.ClientRemotePowerShell
Simplify IDisposable implementation
2022-01-21 18:54:16 +05:00
hammy3502
3eca7c019e
Adds a .ResolvedTarget Property to File-System Items to Reflect a Symlink's Target as FileSystemInfo ( #16490 )
2022-01-21 09:23:11 +05:00
Dongbo Wang
186d6be47d
Use NotifyEndApplication to re-enable VT mode ( #16612 )
...
Use NotifyEndApplication to re-enable VT mode instead of doing it in InputLoop.Run, so that we run this code only after invoking native commands
2022-01-14 09:07:06 +05:00
Mathias R. Jessen
686c84cccc
Add new parameter to Start-Sleep: [-Duration] <timespan> ( #16185 )
2022-01-13 17:39:54 -08:00
Sergey Zalyadeev and Sergey Zalyadeev
da7c52a52f
Add lock and null check to remoting internals ( #16542 ) ( #16683 )
...
* fix crash Copy-Item to remote session (#16542 )
* update comments
* remove lock (#16542 )
Co-authored-by: Sergey Zalyadeev <sergey.zalyadeev@cayosoft.com >
2022-01-13 12:28:03 -08:00
KiwiThePoodle
83a809b1f0
Make Measure-Object ignore missing properties unless running in strict mode ( #16589 )
2022-01-13 09:33:43 -08:00
Steve Lee
87b61a0452
remove assert that is incorrect and affecting our tests ( #16588 )
2022-01-12 15:08:47 -08:00
Thomas-Yu
ed6e0588c8
Add -StrictMode to Invoke-Command to allow specifying strict mode when invoking command locally ( #16545 )
2022-01-12 11:17:02 -08:00