Skip to content

Instantly share code, notes, and snippets.

View Ashex's full-sized avatar
:shipit:

Evelyn Osman Ashex

:shipit:
View GitHub Profile
@Ashex
Ashex / install_dotnet.py
Created May 20, 2015 12:14
Install .NET 4
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
@Ashex
Ashex / install_sql2014.ps1
Last active August 29, 2015 14:21
Silently install SQL Server 2014 from iso
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\