PowerShell command Get-SmConfigSettings fails to run
- Views:
- 79
- Visibility:
- Public
- Votes:
- 0
- Category:
- snapcenter
- Specialty:
- SNAPX
- Last Updated:
- 3/14/2023, 3:24:15 PM
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