Permalink
..
Failed to load latest commit information.
Grani_DotNetFramework.psm1 Update to 3.6.2. fix instllation fail with unattended SYSTEM installa… Nov 24, 2015
Grani_DotNetFramework.schema.mof
README.md
cDotNetFramework.png Add .NetFramework installation resource with DSC. https://github.com/… Nov 20, 2015

README.md

Grani_DotNetFramework

DSC Resource to install/uninstall .NetFramework offline file.

Resource Information

Name FriendlyName ModuleName
Grani_DotNetFramework cDotNetFramework GraniResource

Test Status

See GraniResource.Test for the detail.

Method Result
Pester pass
Configuration pass
Get-DSCConfiguration pass
Test-DSCConfiguration pass

Intellisense

Sample

  • Install .NetFramework 4.6

Download and Install .NetFramework 4.6 for Windows Server 2012 R2

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"
    }    
}
  • Uninstall .NetFramework 4.6

Uninstall .NetFramework 4.6 for Windows Server 2012 R2

configuration Absent
{
    Import-DscResource -ModuleName GraniResource

    cDotNetFramework hoge
    {
        KB = "KB3045563"
        Ensure = "Absent"
        NoRestart = $true
    }    
}