Desired State Configuration pull server Configuration, how to create single MOF file for multiple servers.


hi all,

i trying create new pull server windows 2016 dsc ( ps 5.0), best way distribute configuration across multiple servers (i have more 200 server require same configuration). found option create mof file each server nodes "https://blogs.technet.microsoft.com/canitpro/2014/03/24/using-a-single-dsc-configuration-for-multiple-servers/". me not pull server. 

my questions , node name mentioned below "contoso-fps1", hard coded in mof file have relevance if use pull server renaming contoso-fps1.mof file <guid>.mof file? can use same mof file setting configuration node named "contoso-fps2"

configuration mysamplefileserver
{
param($nodename)
    node $nodename
    {
        windowsfeature filestorage
        {
        ensure = "present"
        name = "fileandstorage-services"
        }
        windowsfeature printersharing
        {
        ensure = "present"
        name = "print-services"
        }
    }
}
mysamplefileserver –nodename ‘contoso-fps1’



regards, vipin vasudevan

this forum designed address system management issues of general nature.  powershell.org hosts forum dedicated dsc questions - https://powershell.org/forums/forum/dsc-desired-state-configuration/  in order reach knowledgeable experts in dsc, suggestion post questions there.

tim



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Azure MFA with Azure AD and RDS

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com