SnapCenter 6.0 PowerShell Integration Issues
Applies to
- SnapCenter Server 6.0.0
- PowerShell 7
Issue
With the release of SnapCenter 6.0, there have been significant changes to the PowerShell Toolkit. These changes have introduced two primary issues:
- PSModulePath Not Populated: The PSModulePath environment variable is not consistently populated during the upgrade or installation process.
- Manual Module Import Requirement: Users now need to manually import the SnapCenter module, which was previously auto-loaded.
Detailed Description:
Issue 1: PSModulePath Missing
During the installation of Powershell 7, the PSModulePath environment variable is not always updated to include the path to the modules folder.
Issue 2: Manual Module Import Requirement
In SnapCenter 6.0, the auto-import functionality that was available in previous versions does not work anymore. Users now need to manually import the SnapCenter module using the Import-Module command. This change requires users to adjust their scripts to include the module import command at the beginning.