Examples/cIBMHTTPServer_Example.ps1

#requires -Version 5

Configuration IHS
{
    Import-DscResource â€“ModuleName 'PSDesiredStateConfiguration'
    Import-DSCResource -ModuleName 'cIBMInstallationManager' -ModuleVersion '1.1.0'
    Import-DSCResource -ModuleName 'cIBMHTTPServer' -ModuleVersion '1.1.0'

    Package SevenZip {
        Ensure = 'Present'
        Name = '7-Zip 9.20 (x64 edition)'
        ProductId = '23170F69-40C1-2702-0920-000001000000'
        Path = 'C:\Media\7z920-x64.msi'
    }
    cIBMInstallationManager iimInstall
    {
        Ensure = 'Present'
        InstallationDirectory = 'C:\IBM\IIM'
        Version = '1.8.4.1'
        SourcePath = 'C:\Media\IBM\InstallationManager\agent.installer.win32.win32.x86_64_1.8.4001.20160217_1716.zip'
        DependsOn= "[Package]SevenZip"
    }

    cIBMHTTPServer IHSInstall
    {
        Ensure = 'Present'
        Version = '8.5.5'
        InstallationDirectory = 'C:\IBM\HTTPServer'
        StartupType = 'Automatic'
        SourcePath = '\\vmware-host\Shared Folders\dev\Media\IBM\HTTPServer\v8.5.5\Install'
        DependsOn= '[cIBMInstallationManager]iimInstall'
    }
}
IHS
Start-DscConfiguration -Wait -Force -Verbose IHS