Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

Summary

The New-DscMetaConfiguration cmdlet allows you to create a localhost.meta.mof with the options specified when calling the cmdlet. Optionally, it will also apply the meta configuration (and remove the temporary localhost.meta.mof).

How To Run

Dot source the New-DscMetaConfiguration.ps1 file into your session and run the following:

New-DscMetaConfiguration -Path c:\temp\myTemp.mof -ConfigurationMode ApplyOnly -RefreshMode Push -RebootNodeIfNeeded $false -DebugMode None -ActionAfterReboot StopConfiguration -StatusRetentionTimeInDays 30

How It Works

At it's core, this cmdlet just builds the DSC configuration code to create a localhost.meta.mof file, based on the parameters specified. From there, a meta configuration file can be created, or it can be directly applied.

Future

In the near future, we will be packaging this cmdlet into a module and publishing to the PowerShell Gallery.