PowerShell command Get-SmConfigSettings fails to run
Applies to
- SnapCenter Server (SC) 4.6 and 4.7
- PowerShell (PS)
Issue
- PS command
Get-SmConfigSettings -Server -Key All
fails to run with the error:
Get-SmConfigSettings : Object reference not set to an instance of an object.
At line:1 char:1
+ Get-SmConfigSettings -Server -Key All
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SmConfigSettings], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,SnapManager.Client.PSModule.Commands.GetSmConfigSettingsCo
mmand