Skip to content

Get-PSHostProcessInfo fails on non-Windows #5081

@SteveL-MSFT

Description

@SteveL-MSFT

We may have to disable this cmdlet on non-Windows

Steps to reproduce

Get-PSHostProcessInfo                                                                                             

Expected behavior

List PowerShell processes

Actual behavior

Get-PSHostProcessInfo : Unable to load DLL 'api-ms-win-core-file-l1-1-0.dll': The specified module or one of its dependencies could not be found.
 (Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ Get-PSHostProcessInfo
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-PSHostProcessInfo], DllNotFoundException
    + FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.GetPSHostProcessInfoCommand

Environment data

Name                           Value                                                                                                               
----                           -----                                                                                                               
PSVersion                      6.0.0-beta.8                                                                                                        
PSEdition                      Core                                                                                                                
GitCommitId                    v6.0.0-beta.8                                                                                                       
OS                             Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64      
Platform                       Unix                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                             
PSRemotingProtocolVersion      2.3                                                                                                                 
SerializationVersion           1.1.0.1                                                                                                             
WSManStackVersion              3.0  

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions