Skip to content

DSC Configurations should work on windows #4570

Closed

Description

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

Activity

  1. added
    Area-DSC
    on Aug 15, 2017
  2. added this to the milestone on Aug 15, 2017
  3. SteveL-MSFT commented on Sep 11, 2017

    @SteveL-MSFT
    Member

    sergei (@vors), do you know where the source is for this published module?

  4. SteveL-MSFT commented on Sep 11, 2017

    @SteveL-MSFT
    Member
  5. vors commented on Sep 11, 2017

    @vors
    Collaborator

    don't remember too good, but there were some changes to make it work on linux from the MSOSS team.
    Andy Jordan (@andschwa) do you remember?

  6. andyleejordan commented on Sep 11, 2017

    @andyleejordan
    Member

    It's not this is it? Maybe Paul Allen (@paulcallen) knows?

  7. SteveL-MSFT commented on Sep 11, 2017

    @SteveL-MSFT
    Member

    Andy Jordan (@andschwa) I see a bunch of resources, but not psdesiredstateconfiguration.psm1 module itself. Despite the name, it seems that repo is something else.

  8. Indhukrishna commented on Sep 12, 2017

    @Indhukrishna
    Contributor

    The repo pointed to by Andy Jordan (@andschwa) is the resource that is part of DSC Resource Kit and it has not much do with the PSDesiredStateConfiguration module that we are looking for
    Steve Lee (@SteveL-MSFT) Should we take the PSDesiredStateConfigurarion module from the Nuget package and maintain that as the source going forward?

  9. SteveL-MSFT commented on Sep 12, 2017

    @SteveL-MSFT
    Member

    Indhu Sivaramakrishnan (@Indhukrishna) seems like the right thing to do, I'll work with you offline on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-DSCResolution-Fixed

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions