Skip to content

Get-Item with stream: Unable to load DLL 'api-ms-win-core-file-l1-2-2.dll' #9144

@s-shamesmuhametov-parc

Description

@s-shamesmuhametov-parc

Steps to reproduce

Get-Item test.txt -Stream *

Expected behavior

Success result info.

Actual behavior

Get-Item : Unable to load DLL 'api-ms-win-core-file-l1-2-2.dll' or one of its dependencies: Не найден указанный модуль. (Exception from HRESULT: 0x8007007E)

$error[0] | fl * -force

PSMessageDetails      :
Exception             : System.DllNotFoundException: Unable to load DLL 'api-ms-win-core-file-l1-2-2.dll' or one of its dependencies: Не найден указанный модуль. (Exception from HRESULT: 0x8007007E)
                           at System.Management.Automation.Internal.AlternateDataStreamUtilities.NativeMethods.FindFirstStreamW(String lpFileName, StreamInfoLevels InfoLevel, AlternateStreamNativeData lpFindStreamData, UInt32 dwFlags)
                           at System.Management.Automation.Internal.AlternateDataStreamUtilities.GetStreams(String path)
                           at Microsoft.PowerShell.Commands.FileSystemProvider.GetItem(String path)
                           at System.Management.Automation.SessionStateInternal.GetItemPrivate(CmdletProvider providerInstance, String path, CmdletProviderContext context)
TargetObject          :
CategoryInfo          : NotSpecified: (:) [Get-Item], DllNotFoundException
FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.GetItemCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}

Environment data

OS: Windows 8.1 x64 (6.3.9600)
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.3
PSEdition                      Core
GitCommitId                    6.1.3
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Labels

Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions