Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DSC Configurations should work on windows #4570

Copy link
Copy link
@TravisEz13

Description

@TravisEz13
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.