MOF on file share

Tagged: , , , , ,

This topic contains 4 replies, has 4 voices, and was last updated by  Daniel 3 weeks, 4 days ago.

  • Author
    Posts
  • #78166

    Craig
    Participant

    Is it possible to store my MOFs on a file share and reference it via UNC when running Set-DscLocalConfigurationManager or Start-DscConfiguration?

    Thanks.

  • #78169

    Don Jones
    Keymaster

    Sure.

  • #78172

    Craig
    Participant

    Awesome! Thank you.

    [EDIT]
    Upon running Set-DscLocalConfigurationManager, I am getting "\\path\to\share\ is not a valid directory." I have access to the share through File Explorer, and my MOF is definitely located in the destination, so, not sure why it's saying this.

  • #78470

    Alex Aymonier
    Participant

    DSC runs under the local SYSTEM account so that will need access too

  • #78485

    Daniel
    Participant

    Something like this:

    ConfigurationPath = "\\share\mof_files"

    Don't forget the Application Pool if you deploy the mof's with a pullserver, it needs the proper rights too.

You must be logged in to reply to this topic.