Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created November 21, 2015 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/dc8464775016c163e46e to your computer and use it in GitHub Desktop.
Save guitarrapc/dc8464775016c163e46e to your computer and use it in GitHub Desktop.
configuration Present
{
$uri46 = "http://go.microsoft.com/fwlink/?LinkId=528222";
$folder = "c:\Test";
$path = Join-Path $folder "NDP46-KB3045560-Web.exe";
Import-DscResource -ModuleName GraniResource
cDownload hoge
{
Uri = $uri46
DestinationPath = $path
}
cDotNetFramework hoge
{
KB = "KB3045563"
InstallerPath = $path
Ensure = "Present"
NoRestart = $true
LogPath = "C:\Test\Present.log"
DependsOn = "[cDownload]hoge"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment