Sitecore Commerce : Install-SitecoreConfiguration cmdlet not recognized error

Error: Install-SitecoreConfiguration : The term 'Install-SitecoreConfiguration  is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.


 

Solution: I executed the following command in powershell and this ran a few updates related to Powershell 7 - iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

When I tried running the Install-SitecoreConfiguration Command after the msi install, the cmdlet was recognized. But, when I ran $PSVersionTable.PSVersion, I still see the old version, not sure if a restart will display the latest version but good thing is Install-SitecoreConfiguration is recognized after the msi install.



Comments