PowerShell / DSC

This repo is for the DSC v3 project
MIT License
195 stars 24 forks source link

DSC executable doesn't run on Windows Server unless C++ redistributables are installed #256

Closed jchancellor-ms closed 9 months ago

jchancellor-ms commented 10 months ago

Prerequisites

Steps to reproduce

When running the latest Alpha release on windows server 2019 and windows server 2022 the command fails with error: The code execution cannot proceed because vcruntime140.dll was not found. Reinstalling the program may fix this problem. Installing the latest C++ redistributable corrects this issue. (https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)

Expected behavior

dsc resource list returns resources and not an error.

Actual behavior

error: The code execution cannot proceed because vcruntime140.dll was not found.  Reinstalling the program may fix this problem

Error details

error: The code execution cannot proceed because vcruntime140.dll was not found.  Reinstalling the program may fix this problem

Environment data

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

Version

7.3.9

Visuals

image