Skip to content

MimSyncMVOptions

Craig Martin edited this page Feb 18, 2019 · 1 revision

This resource is for MIM Sync MV options.

The DSC resource configuration below validates the MIM Sync configuration by inspecting the XML below. TODO - include screen shots of the MIM Sync UI

DSC Configuration

This is a sample DSC configuration including just the Import Attribute Flow Rule resource type.

Configuration TestMimSyncMVOptions 
{ 
    Import-DscResource -ModuleName MimSyncDsc

    Node (hostname) 
    { 
        MVOptions TestcFimSyncMVOptions
        {
            FakeIdentifier                   = 'foo'
            ProvisioningType                 = 'scripted'
            ExtensionAssemblyName            = 'ELMA-MV-Sample.dll'
            ExtensionApplicationProtection   = 'low'
        }
    }
}  

MIM Sync XML

This is the XML exported from the Sync Service, which is what the DSC resource validates.

<mv-data>
    <provisioning type="scripted" />    
    <extension>
        <assembly-name>ELMA-MV-Sample.dll</assembly-name>
        <application-protection>low</application-protection>
    </extension>
</mv-data>

DSC Verbose Output

This is sample log output showing what DSC does with the resource to validate the configuration.

VERBOSE: [CMARTBOOK]: LCM:  [ Start  Set      ]
VERBOSE: [CMARTBOOK]: LCM:  [ Start  Resource ]  [[MVOptions]TestcFimSyncMVOptions]
VERBOSE: [CMARTBOOK]: LCM:  [ Start  Test     ]  [[MVOptions]TestcFimSyncMVOptions]
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] Using CacheLocation: C:\ProgramData\MimSyncDsc\Svrexport
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] Using CacheAge:      1440 (in minutes)
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] Cache still valid, leave it
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] Finding the MV options ...
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]   Using XPath: //mv-data
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] MV Options found, diffing the properties...
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]   Comparing property 'provisioning type'
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From DSC: scripted
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From FIM: scripted
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]   Comparing property 'extension.assembly-name'
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From DSC: foo.dll
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From FIM: ELMA-MV-Sample.dll
WARNING: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]   'extension.assembly-name' property is not the same.
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]   Comparing property 'extension.application-protection'
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From DSC: low
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions]     From FIM: low
VERBOSE: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] Returning: False
VERBOSE: [CMARTBOOK]: LCM:  [ End    Test     ]  [[MVOptions]TestcFimSyncMVOptions]  in 0.6360 seconds.
VERBOSE: [CMARTBOOK]: LCM:  [ Start  Set      ]  [[MVOptions]TestcFimSyncMVOptions]
WARNING: [CMARTBOOK]:                            [[MVOptions]TestcFimSyncMVOptions] DSC resources for the Synchronization Service are not able to update the Synchronization configuration.
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]  [[MVOptions]TestcFimSyncMVOptions]  in 0.0080 seconds.
VERBOSE: [CMARTBOOK]: LCM:  [ End    Resource ]  [[MVOptions]TestcFimSyncMVOptions]
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]    in  1.0530 seconds.