Is it possible to install and import DSC resource in the same file

Welcome Forums DSC (Desired State Configuration) Is it possible to install and import DSC resource in the same file

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

GS
 
Participant
1 year ago.

  • Author
    Posts
  • #88238
    GS

    Participant
    Points: 1
    Rank: Member

    Hello,

    Is it possible to somehow use single powershell script to both install a module which contains DSC resources as well import those into DSC configuration block in the same file. Right now I have to do installation first and then call & "step2.ps1" file which contains Configuration block. I'd like to keep entire process in single file, is it possible somehow?

  • #88247

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

    Nope. But, if you've configured the LCM to use a pull server (which can just be a file share), it can automatically download and install any needed resource modules.

  • #88249
    GS

    Participant
    Points: 1
    Rank: Member

    Well it's PIA since it precludes just sending configuration script in email or providing internal GitHub link to configuration file for people to use during imaging process.

The topic ‘Is it possible to install and import DSC resource in the same file’ is closed to new replies.