Skip to content

DSC Configurations should work on windows #4570

@TravisEz13

Description

@TravisEz13

Repro

configuration foo {
    service foo {
        name ='foo'
     } 
}
foo

Expected behavior

should run configuration

Actual behavior

WARNING: The names of some imported commands from the module 'PSDesiredStateConfiguration' include unapproved verbs
that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again
 with the Verbose parameter. For a list of approved verbs, type Get-Verb.
out-file : Could not find a part of the path 'C:\dev\null'.
At C:\program files\powershell\6.0.0-beta.5\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:1957
char:17
+ ...             New-Item -ErrorVariable mkdirError -ItemType Directory -F ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.5
OS                             Microsoft Windows 10.0.15063
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional data

PSDesiredStateConfiguration.psm1:1597 is hard coded to output to /dev/null which doesn't work on windows

Metadata

Metadata

Assignees

Labels

Area-DSCDesired State Configuration issuesResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions