Steve Lee
20a236b228
Update setting PSModulePath to concatenate the process + machine env var ( #11276 )
2019-12-09 16:25:08 -08:00
Ilya
95c472a8c2
Add native binary resolver ( #11032 )
2019-12-09 12:03:53 -08:00
Ilya
42f21ae6a0
Cleanups in command discovery ( #10815 )
...
* Enable nullable, make minor cleanups, add a test
* Reduce allocations in GetAliasTable()
* Remove searching by extensions on Unix
2019-12-03 11:23:36 +05:00
Travis Plunk
3cdab0d18d
Add Unblock-File for macOS ( #11137 )
2019-12-02 17:51:36 -08:00
Brendan Burns
d38541fdce
Add an implementation of Stop-Computer for Linux and macOS ( #11151 )
2019-12-02 17:29:11 -08:00
David Smatlak
3923ca1728
Fixes FWLinks for PS7 online help documents ( #11071 )
2019-12-02 10:25:56 -08:00
Dongbo Wang
d46dfc26b7
Do not resolve types from assemblies that are loaded in separate AssemblyLoadContext ( #11088 )
2019-11-26 12:40:16 -08:00
Andrew
b218e6f6cc
Support using non-compatible Windows PowerShell modules in PowerShell Core ( #10973 )
2019-11-18 10:44:55 -08:00
Steve Lee
2e553038c5
Allow pwsh to inherit $env:PSModulePath and enable powershell.exe to start correctly ( #11057 )
2019-11-15 17:29:04 -08:00
James Truher [MSFT]
fe712f8de2
Experimental Feature: Provide Unix stat information in filesystem output ( #11042 )
2019-11-15 17:26:11 -08:00
Paul Higinbotham
bd0e30dec1
Fix Start-Job working directory path with trailing back slash ( #11041 )
2019-11-15 17:05:27 -08:00
Steve Lee
2a45ccc787
Fix ConciseView to show Activity instead of myCommand ( #11007 )
...
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee
7ddfb825e4
Add back Get-Counter cmdlet for Windows ( #10933 )
2019-11-05 16:48:11 -08:00
Steve Lee and Ilya
b74a26bb91
Added cross-platform Get-Clipboard and Set-Clipboard ( #10340 )
...
Co-Authored-By: Ilya <darpa@yandex.ru >
Co-Authored-By: Ilya <darpa@yandex.ru >
2019-11-04 11:28:58 -08:00
Steve Lee
6882ad56fd
Add back Out-Printer command ( #10906 )
2019-11-01 11:27:12 -07:00
Steve Lee
4b9c2b2008
Fix Start-Job -WorkingDirectory with whitespace ( #10951 )
2019-11-01 11:09:00 -07:00
Dongbo Wang
8749db9b81
Improve processing of the powershell built-in type data from 'types.ps1xml', 'typesV3.ps1xml' and 'GetEvent.types.ps1xml' ( #10898 )
2019-11-01 10:36:05 -07:00
Steve Lee
ca68d9dbc5
Add GraphicalHost assembly to enable Out-GridView, Show-Command, and Get-Help -ShowWindow ( #10899 )
2019-11-01 10:05:32 -07:00
PRASOON KARUNAN V
5a76137d14
Take ComputerName via Pipeline in Get-HotFix ( #10852 )
...
* add process record for Get-hotfix
* update new FWLink
2019-11-01 08:02:19 +05:00
Ilya
46957e54d0
Set working directory to current directory in Start-Job ( #10920 )
2019-10-30 14:22:45 -07:00
Steve Lee
0b12ea057a
Add back Update-List command ( #10922 )
2019-10-30 11:05:30 -07:00
Sean Wheeler
0faa60168b
Update FWLink Id for Clear-RecycleBin ( #10925 )
2019-10-29 22:14:09 +05:00
Steve Lee
ca1b6fb4c5
Add back Clear-RecycleBin for Windows ( #10909 )
2019-10-28 08:18:26 +05:00
Steve Lee
d8d32d79c2
Implement Get-Error cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00
Patrick Meinecke
beb8b44420
Use type conversion in SSHConnection hashtables when value doesn't match expected type ( #10720 )
...
Before the change if the hashtable value does not match the expected type exactly, an exception is thrown stating that the value was null.
2019-10-15 22:16:49 +05:00
Steve Lee
1fa73e360f
Add back Get-HotFix cmdlet ( #10740 )
2019-10-11 22:51:43 +05:00
Dongbo Wang
ec105da3f1
Some code cleanup work ( #10698 )
...
* Move Utils.GetUserConfigurationDirectory to Platform.ConfigDirectory
* Unify the use of Platform.ConfigDirectory and Platform.CacheDirectory
2019-10-07 14:15:01 +05:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Andrew
ed29ad1506
Adding PSCore group policy definitions ( #10468 )
2019-09-12 13:41:59 -07:00
Sotiris Nanopoulos
f69f30ba49
Add working directory parameter to Start-Job ( #10324 )
2019-09-11 10:51:32 -07:00
Kirk Munro
cc0fed479a
Add APIs for breakpoint management in runspaces and enable attach to process without BreakAll for PSES ( #10338 )
2019-09-05 11:30:25 -07:00
James Truher [MSFT]
3943f18c28
Alpine validation changes ( #10428 )
2019-08-24 11:35:34 -07:00
Kirk Munro
8b9f4124ce
Add support to ActionPreference.Break to break into debugger ( #8205 )
2019-08-23 10:34:10 -07:00
Steve Lee
00949ab352
.CPL should be added to PATHEXT ( #9828 )
2019-08-17 22:45:13 +05:00
James Truher [MSFT]
fe2cc6aca8
Additional Telemetry - Implementation of RFC0036 ( #10336 )
2019-08-15 16:13:53 -07:00
Steve Lee
882cbf367f
Enable Experimental Features by default on Preview builds ( #10228 )
2019-08-08 11:37:25 -07:00
Ilya
0ae7d50d5c
Remove 'kill' alias for Stop-Process cmdlet on Unix ( #10098 )
2019-07-15 08:12:26 +05:00
Ilya
5d98b901be
Cleanup workflow code ( #9638 )
...
* Remove WorkFlowInfo type
* Remove condition for UseSharedProcess
* Remove PSWorkflowJob condition
* Remove workflow from ValidateSet
* Remove workflow from CommandTypes enum
* Remove workflow from EventManager
* Remove workflow from Get-Help
* Remove WorkflowFileExtension ".xaml" from ModuleIntrinsics
* Remove WorkflowFileExtension ".xaml" from ModuleCmdletBase
* Remove workflow from PSModuleInfo
* Remove workflow from CustomShellCommands
* Remove workflow from InitialSessionStateProvider
* Remove WriteWorkflowDebugNotSupportedError()
* Remove unneeded resource strings from Module.cs
* Remove xaml from valid extension list
2019-07-07 01:03:03 +05:00
xtqqczze
0d55a7249b
Suppress PossibleIncorrectUsageOfAssignmentOperator rule violation by adding extra parenthesis ( #9460 )
2019-07-02 13:23:58 -07:00
Joel Sallow (/u/ta11ow)
b34e331d63
Consider DBNull.Value and NullString.Value the same as $null when comparing with $null and casting to bool ( #9794 )
...
- Adds `LanguagePrimitives.IsNullLike()` method to account for `DBNull.Value` and `NullString.Value` so that they can be considered the same as a null value where sensible in PowerShell.
- Updates `-ne` and `-eq` binders to treat `DBNull.Value` and `NullString.Value` as equal to null/AutomationNull.
- Update code paths for comparing objects in LanguagePrimitives to ensure consistency with how the `-eq` and `-ne` binders work when calling LanguagePrimitives methods to do the comparisons.
- Make `LanguagePrimitives.IsNull()` and `LanguagePrimitives.IsNullLike()` public methods.
- Added tests for null behaviours in `NullRepresentatives.Tests.ps1`
2019-06-28 11:39:34 -07:00
nbkalex
358d12ea93
Display com method signature with argument names ( #9858 )
2019-06-20 13:22:30 -07:00
Steve Lee
b4e2423fab
Fix use of Start-Process http://bing.com ( #9793 )
2019-06-04 14:36:12 -07:00
Steve Lee
29e21470d9
Port PowerShell to .NET Core 3.0 ( #9597 )
2019-05-21 13:43:51 +08:00
Travis Plunk
1d94e8c947
Make sure we always return an object in command searcher ( #9623 )
2019-05-20 11:22:34 -07:00
Steve Lee
a96b4c0404
Update use of "PowerShell Core" to just "PowerShell" ( #9513 )
2019-05-10 15:34:27 -07:00
Aditya Patwardhan
ade85b4faa
Multiple test fixes and improved logging for fragile tests ( #9569 )
2019-05-10 10:56:12 -07:00
Chris Dent
374e0cf54d
Add support for ValidateRangeKind to ParameterMetadata.GetProxyAttributeData ( #9059 )
2019-05-07 12:15:38 -07:00
Steve Lee
3bfca6d0fa
Update use of Windows PowerShell to just PowerShell ( #9508 )
2019-05-03 15:38:06 +05:00
xtqqczze
a702f68974
Ensure Wait-UntilTrue returns $true in Pester tests ( #9458 )
2019-05-01 17:03:43 -07:00
Steve Lee
5e58e30d20
Move warning message to EndProcessing so it only shows up once ( #9385 )
2019-04-23 13:31:20 -07:00