From 7767acfb01caffef8d2510e596580c0117bced6b Mon Sep 17 00:00:00 2001 From: Marko Bozikovic Date: Fri, 9 Jun 2017 15:02:45 +0100 Subject: [PATCH] [#569] Fixed a missing parameter --- .../MSFT_xSQLServerRSConfig/MSFT_xSQLServerRSConfig.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DSCResources/MSFT_xSQLServerRSConfig/MSFT_xSQLServerRSConfig.psm1 b/DSCResources/MSFT_xSQLServerRSConfig/MSFT_xSQLServerRSConfig.psm1 index 19cde5d0a..368fd22b6 100644 --- a/DSCResources/MSFT_xSQLServerRSConfig/MSFT_xSQLServerRSConfig.psm1 +++ b/DSCResources/MSFT_xSQLServerRSConfig/MSFT_xSQLServerRSConfig.psm1 @@ -105,7 +105,7 @@ function Set-TargetResource $instanceNamesRegistryKey = 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\RS' - if ( Get-ItemProperty -Path -Name $InstanceName -ErrorAction SilentlyContinue ) + if ( Get-ItemProperty -Path $instanceNamesRegistryKey -Name $InstanceName -ErrorAction SilentlyContinue ) { # smart import of the SQL module Import-SQLPSModule