Examples/cChocoInstaller_InstallChocoExample.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Configuration InstallChoco
{
   Import-DscResource -Module cChoco  
   Node "localhost"
   {
      cChocoInstaller InstallChoco
      {
        InstallDir = "c:\choco"
      }
   }
} 

$config = InstallChoco

Start-DscConfiguration -Path $config.psparentpath -Wait -Verbose -Force