guitarrapc / GraniResource

PowerShell Desired State Configuration Resources for real production workload.
https://www.powershellgallery.com/packages/GraniResource
MIT License
44 stars 8 forks source link

cDotNetFramework KB Version does not exist for all Windows product versions #76

Open andy1547 opened 7 years ago

andy1547 commented 7 years ago

For each Windows Product, after installing DotNet the outcomes are:

Would this mean that if using Windows 7 SP1 / Windows Server 2008 R2 SP1 the Test Resource would always return false at it simply does a KB check?

It would be great if the resource could take a guess at the KB/installed program based on the product name of Windows it's applying the configuration to, it could possibly switch on this registry key in the test resource. (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' ProductName).ProductName

Documentation at https://support.microsoft.com/en-gb/help/3151800/the-.net-framework-4.6.2-offline-installer-for-windows

guitarrapc commented 6 years ago

As of PowerShell is not fully orthogonal powered language. Switch clause will bring more complexity. Hmmmm, any idea for Windows Version and .NET Framework dynamic resolver is welome.