From the course: PowerShell: Scripting for Advanced Automation

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Creating pull configurations

Creating pull configurations

From the course: PowerShell: Scripting for Advanced Automation

Start my 1-month free trial

Creating pull configurations

- [Instructor] In the last video, we created this SMB pull share for our DSC configurations. The next step in setting up our pull server is creating the configurations that need to be pulled. I have a configuration created here in ISE that makes sure that an unwanted service is stopped, a desired service is started, and that the web server role is not installed. This is the configuration that I would like for another server to be able to pull. But before I run it to create the MOF file, once again I need to check where I'm located and make sure that I'm creating this file in a folder that I can easily find. So, I'm going to switch back over to the DSC folder that I've created in the root of my C drive, and that's where I'm going to create the MOF file. To create that MOF file, again, we'll go ahead and load the configuration. Easily done by collapsing the outer braces there, select that much, and click run selection. Once that's all loaded into memory, then I can compile it by simply…

Contents