MOF on file share

Welcome Forums DSC (Desired State Configuration) MOF on file share

This topic contains 4 replies, has 4 voices, and was last updated by

 
Participant
1 year, 3 months ago.

  • Author
    Posts
  • #78166

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    Sure.

  • #78172

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 87
    Helping Hand
    Rank: Member

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

  • #78485

    Participant
    Points: 0
    Rank: Member

    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.

The topic ‘MOF on file share’ is closed to new replies.