Commit Graph
9793 Commits
Author SHA1 Message Date
CarloToso bcb0a9425d Cleanup webrequestpscmdlet.common.cs (#18596) 2022-12-15 22:55:50 +05:00
dependabot[bot] bae00ec7d2 Bump Microsoft.CodeAnalysis.NetAnalyzers (#18750)
Bumps [Microsoft.CodeAnalysis.NetAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 7.0.0-preview1.22551.1 to 7.0.0.
- [Release notes](https://github.com/dotnet/roslyn-analyzers/releases)
- [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/main/PostReleaseActivities.md)
- [Commits](https://github.com/dotnet/roslyn-analyzers/commits/7.0.0)

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.NetAnalyzers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-15 16:23:48 +00:00
Ilya 218c6cea15 Unify CreateFile pinvoke in SMA (#18751) 2022-12-15 11:05:07 +05:00
Travis Plunk bea1c6ee0e Merged PR 23331: Remove TabExpansion from remote session configuration (#18795) 2022-12-14 19:46:47 +00:00
Aditya Patwardhan de416dc831 Bump .NET SDK to version 7.0.101 (#18786) 2022-12-14 10:55:17 -08:00
dependabot[bot] de079ee6b4 Bump cirrus-actions/rebase from 1.7 to 1.8 (#18788) 2022-12-14 09:33:27 -08:00
Jose SuaandJose Sua 36282c20f2 Add Instrumentation to AmsiUtil and make the init variable readonly (#18727)
* Add Insturmentation to AmsiUtil and make the init variable readonly

* remove unwanted file

* Fix task to hex

* ingnore AsmiInit when not windows

* rename event name

* CR feedback

* the missing dot in the argument documentation because that is very very important.

* CR feedback

Co-authored-by: Jose Sua <josesua@ntdev.microsoft.com>
2022-12-14 08:42:53 -08:00
CarloToso 2ddc63f151 Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() (#18784) 2022-12-14 18:30:33 +05:00
CarloToso b7096e8cb6 WebCmdlets get Retry-After from headers if StatusCode is 429 (#18717) 2022-12-14 14:20:53 +05:00
John Bevan 9d0bac5add Implement SupportsShouldProcess in Stop-Transcript (#18731) 2022-12-14 10:39:41 +05:00
CarloToso 9cc914e1e5 Cleanup webresponseobject.common (#18785) 2022-12-14 09:51:15 +05:00
CarloToso 88077bd985 InvokeRestMethodCommand.Common cleanup and merge partials (#18736) 2022-12-14 09:48:13 +05:00
xtqqczze 4ff581e906 Replace GetDirectories in CimDscParser (#14319) 2022-12-13 23:13:18 +05:00
Travis Plunk bc3b0d60e6 Update readme and metadata form 7.3.1 and 7.2.8 release (#18780)
* Update readme and metadata form 7.3.1 and 7.2.8 release

* Revert "Update readme and metadata form 7.3.1 and 7.2.8 release"

This reverts commit 2af4b6d538.
2022-12-13 09:36:11 -08:00
Steve Lee eb9ca7c351 Fix New-Item -ItemType Hardlink to resolve target to absolute path and not allow link to itself (#18634) 2022-12-13 22:09:28 +05:00
CarloToso c3a080caf9 WebResponseObject.Common merge partials atomic commits (#18703) 2022-12-13 18:18:16 +05:00
MartinGC94 b6f83e7520 Add output types to Format commands (#18746) 2022-12-13 10:40:35 +05:00
Ilya e7c68af8bb Enable pending test for Start-Process (#18724) 2022-12-12 11:26:27 -08:00
Ikko Ashimine 97fd1421a7 Fix typo in OutOfProcTransportManager.cs (#18766)
accomodate -> accommodate
2022-12-12 10:42:12 -08:00
Dongbo Wang 061947969d Allow non-default encodings to be used in user's script/code (#18605) 2022-12-07 10:16:06 +05:00
Ilya 67a78d3004 Remove one CreateFileW (#18732) 2022-12-06 23:36:47 +05:00
Dongbo Wang bd6edfdd9c Add testexe.exe -echocmdline to output raw command line received by the process on Windows (#18591) 2022-12-06 10:31:54 -08:00
Ilya 07175ae0ff Replace DllImport with LibraryImport for WNetAddConnection2 (#18721) 2022-12-05 23:50:22 +05:00
Ilya 5d9835f46e Use File.OpenHandle() instead CreateFileW pinvoke (#18722) 2022-12-05 22:38:45 +05:00
Ilya bdea773598 Replace DllImport with LibraryImport for WNetGetConnection (#18690) 2022-12-03 17:16:26 +05:00
dependabot[bot] 4c580f7330 Bump decode-uri-component from 0.2.0 to 0.2.2 (#18712) 2022-12-02 10:44:29 -08:00
Jordan Borean 6fa7260db9 Fix the process CommandLine on Linux (#18710) 2022-12-02 10:23:00 -08:00
dependabot[bot] 11ffaf1e33 Bump Microsoft.CodeAnalysis.CSharp from 4.4.0-4.final to 4.4.0 (#18562)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 4.4.0-4.final to 4.4.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits/Visual-Studio-2019-Version-16.0-Preview-4.4)

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 17:25:12 +05:00
Dongbo Wang ae3c3169ee Fix SuspiciousContentChecker.Match to detect a pre-defined string when the text starts with it (#18693) 2022-12-01 22:26:43 -08:00
Steve Lee 8ff6a06f97 Switch $PSNativeCommandUseErrorActionPreference to $true when feature is enabled (#18695) 2022-12-01 16:13:42 -08:00
Ilya 3dc95ced87 Replace DllImport with LibraryImport - 1 (#18603) 2022-11-30 10:00:12 -08:00
Steve Lee 52ea419662 Add Dim and DimOff to $PSStyle (#18653) 2022-11-29 16:13:59 -08:00
Dongbo Wang d03a5553c2 Fix Start-Job to check the existence of working directory using the PowerShell way (#18675)
* Fix `Start-Job` to check the existence of working directory using the PowerShell way

* Add a test

* Update

* Fix the test
2022-11-29 08:41:12 -08:00
Ilya 8686612cfe Replace DllImport with LibraryImport in SMA 3 (#18564) 2022-11-29 08:08:02 +05:00
Ilya 019c3b87df Replace DllImport with LibraryImport in SMA - 7 (#18594) 2022-11-28 11:18:04 -08:00
Berkan Diler ab868781e4 Use static DateTime.UnixEpoch and RandomNumberGenerator.Fill() (#18621) 2022-11-28 11:17:22 -08:00
dependabot[bot] d592ad814d Bump Newtonsoft.Json from 13.0.1 to 13.0.2 (#18657) 2022-11-28 10:11:49 -08:00
Berkan Diler cba9dacb29 Rewrite Get-FileHash to use static HashData methods (#18471) 2022-11-23 17:28:42 +00:00
Ilya 20f0b6e3bd Replace DllImport with LibraryImport in SMA 8 (#18599) 2022-11-23 09:13:05 +05:00
Ilya 5b4a34fcc9 Replace DllImport with LibraryImport in SMA 4 (#18579) 2022-11-23 09:11:52 +05:00
Ilya ea428a6e1f Remove NativeCultureResolver as dead code (#18582) 2022-11-23 09:10:32 +05:00
Aditya Patwardhan 9bad8815e8 Apply expected file permissions to Linux files after Authenticode signing (#18643)
* Upload linux artifacts as tar.gz to preserve linux file permissions

* Fix conditions

* Fix yaml

* Fix paths for downloaded artifacts

* Rename while downloading

* Fix file names and paths

* Fix tar compress

* Add set-location before tar

* Create dirs before expanding

* Create dir before expanding

* Fix conditions

* Add logging

* Export file permission to json

* Fix for condition

* Apply file permissions before packaging

* Add logging

* Fix issues

* Add comments
2022-11-22 12:32:50 -08:00
Ilya 05e50dfbd7 Replace DllImport with LibraryImport in SMA 6 (#18581) 2022-11-22 23:27:45 +05:00
Ilya 8bc9fdb2a1 Replace DllImport with LibraryImport in SMA 2 (#18543) 2022-11-22 22:22:14 +05:00
Ilya 0d320ab89a Use standard SBCS detection (#18593) 2022-11-22 09:13:09 -08:00
Ilya 041f4332e5 Remove unused pinvokes in RemoteSessionNamedPipe (#18583) 2022-11-22 09:12:41 -08:00
CarloToso 83d3b0e12b Webcmdlets add 308 to redirect codes and small cleanup (#18536) 2022-11-22 22:01:26 +05:00
Ilya 0d4def9037 Replace DllImport with LibraryImport in SMA 5 (#18580)
Remove unused code.
2022-11-22 10:21:25 +05:00
Rick Anderson 640a8f7571 Remove 'please' and 'Core' from README.md per MS style guide (#18578) 2022-11-22 09:02:09 +05:00
Ilya 65176b4df1 Remove SafeRegistryHandle (#18597) 2022-11-22 08:33:51 +05:00