Compiling MOFs on Linux for Windows targets

Welcome Forums DSC (Desired State Configuration) Compiling MOFs on Linux for Windows targets

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 11 months ago.

  • Author
  • #54737

    Topics: 3
    Replies: 1
    Points: 1
    Rank: Member


    Has anyone tried this yet, now that Microsoft has pushed alphas of PowerShell and updated versions of DSC for Linux? I can actually compile MOFs on Linux, but of course the built-in Windows resources like "Registry" don't exist on Linux – for obvious reasons.

    To cross-compile MOFs for Linux targets from Windows, there is the nx package on PowerShellGallery:

    I'm wondering if the Windows specific built-ins are published somewhere?


  • #55331

    Topics: 13
    Replies: 4872
    Points: 1,843
    Helping HandTeam Member
    Rank: Community Hero

    Well... so, let's do some terminology. "The DSC resources that ship with the Windows OS" depends on the OS and version of WMF installed; you're probably best off just running Get-DscResource on a sample machine to see.

    Is that what you meant?

    Or, are you asking, "is there a way I can get modules for the Windows resources, on Linux, so that I can compile a for-Windows MOF on a Linux system?" In which case, no, there aren't. The Linux DSC package wasn't written by the PowerShell team, and the focus was on making it a good client – not so much a good authoring environment. Keeping in mind that, when the Linux DSC was written, PowerShell didn't exist on Linux so authoring there wasn't possible.

The topic ‘Compiling MOFs on Linux for Windows targets’ is closed to new replies.