Created
November 21, 2015 06:29
-
-
Save guitarrapc/dc8464775016c163e46e to your computer and use it in GitHub Desktop.
.NET Framework 4.6 installation by PowerShell DSC GraniResource : https://github.com/guitarrapc/DSCResources/tree/master/Custom/GraniResource/DSCResources/Grani_DotNetFramework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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