Skip to content

Start-Process: Unable to load DLL 'api-ms-win-core-job-12-1-0.dll' #6561

@gradinkov

Description

@gradinkov

Repro:

Use clean install of Windows 7 SP1 (apparently both x86 and x64 are affected). Then run the following command in PS 6.0.2 ZIP version:

Start-Process "ipconfig" -ArgumentList "/flushdns" -Wait -NoNewWindow

Result:

Start-Process : Unable to load DLL 'api-ms-win-core-job-l2-1-0.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ Start-Process -FilePath "C:\7zip\7za.exe" -ArgumentList ("x -oC:\temp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Start-Process], DllNotFoundException
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.StartProcessCommand

PowerShell 6.0.2 x86 zip
Windows 7 b7601 SP1 x86 (modern.ie VM)

Works perfectly fine on Win10 x64.

Also tried 6.1.0-preview1, behaves the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions