Month: 9 years ago

Scripting System Center

Powershell Script to check if SQL is Installed

Reading Time: < 1 minute Here we go, short but sweet. I had to come up with this today when working with a SQL Server compliance item in SCCM 2012 using a script detection method. I’ve added the else back in, but you can modify however you need. if (Test-Path “HKLM:\Software\Microsoft\Microsoft SQL Server\Instance Names\SQL”) { write-host “True” } Else { […]

Matt Hansen