This file contains hidden or 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
| def regsearch(regpath): | |
| r = wmi.Registry () | |
| result, names = r.EnumKey ( | |
| hDefKey=_winreg.HKEY_LOCAL_MACHINE, | |
| sSubKeyName="SOFTWARE\Microsoft\NET Framework Setup\NDP" | |
| ) | |
| return names | |
| ''' Confirm that .Net4 and the required security patch are installed | |
| This is a really crappy check, we're pulling a list of .NET versions |
This file contains hidden or 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
| mkdir c:\temp | |
| Write-Host("Install Hotfix to allow .Net 3.5 installation") | |
| Invoke-WebRequest http://download.microsoft.com/download/8/0/8/80894270-D665-4E7A-8A2C-814373FC25C1/NDPFixit-KB3005628-X64.exe -OutFile c:\temp\NDPFixit-KB3005628-X64.exe | |
| Start-Process "c:\temp\NDPFixit-KB3005628-X64.exe" -NoNewWindow -Wait | |
| Write-Host("Enabling .NET Framework 3.5") | |
| Import-Module ServerManager | |
| Add-WindowsFeature Net-Framework-Core | |
| Copy c:\vagrant\en_sql_server_2014_standard_edition_x64_dvd_3932034.iso c:\temp\ |
NewerOlder