You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you try and problem that is occurring:
Tests report Script Analyzer warnings that need to be fixed:
MSFT_xSQLServerRSConfig.psm1 (Line 37): File 'MSFT_xSQLServerRSConfig.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems.
MSFT_xSQLServerRSConfig.psm1 (Line 122): File 'MSFT_xSQLServerRSConfig.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems.
MSFT_xSQLServerRSConfig.psm1 (Line 123): File 'MSFT_xSQLServerRSConfig.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems.
MSFT_xSQLServerRSConfig.psm1 (Line 138): File 'MSFT_xSQLServerRSConfig.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems.
MSFT_xSQLServerRSConfig.psm1 (Line 173): '($SQLCmdLocation.Name)' has non-constant members. Invoking non-constant members may cause bugs in the script.
MSFT_xSQLServerRSConfig.psm1 (Line 175): '($SQLCmdLocation.Name)' has non-constant members. Invoking non-constant members may cause bugs in the script.
The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
dev
The text was updated successfully, but these errors were encountered:
johlju
changed the title
xSQLServerRSConfig: Tests report Script Analyzer warnings that need to be fixed
SqlRS: Tests report Script Analyzer warnings that need to be fixed
Dec 24, 2017
- Changes to SqlRS
- Replaced Get-WmiObject with Get-CimInstance to fix Script Analyzer warnings (issue #264).
- Refactored the resource to use Invoke-CimMethod.
Details of the scenario you try and problem that is occurring:
Tests report Script Analyzer warnings that need to be fixed:
The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
dev
The text was updated successfully, but these errors were encountered: