Example/Sample_xMPC.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# Configuration sample for xMPC. # Vasken Houdoverdov # # Each of the calls to Sample_InstallxMPC below will generate a MOF file which can then be fed into Start-DscConfiguration # # Sample_InstallxMPC -VersionNumber "1.7.9" -Architecture "x64" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.9.x64.exe" # Sample_InstallxMPC -VersionNumber "1.7.9" -Architecture "x86" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.9.x86.exe" # # Sample_InstallxMPC -VersionNumber "1.7.8" -Architecture "x64" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.8.x64.exe" # Sample_InstallxMPC -VersionNumber "1.7.8" -Architecture "x86" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.8.x86.exe" # # Sample_InstallxMPC -VersionNumber "1.7.7" -Architecture "x64" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.7.x64.exe" # Sample_InstallxMPC -VersionNumber "1.7.7" -Architecture "x86" -LocalPath "C:\Windows\DtlDownloads\MPC-HC.1.7.7.x86.exe" # # Note that the silent installation for OSSEC 2.7.1 does not automatically place shortcuts to the Manage Agent utility in the start menu. Configuration Sample_InstallxMPC { param ( [Parameter(Mandatory)] $VersionNumber, [Parameter(Mandatory)] $LocalPath, [Parameter(Mandatory)] $Architecture ) Import-DscResource -module xMPC VH_xMPC mpc { VersionNumber = $VersionNumber Architecture = $Architecture LocalPath = $LocalPath } } |