Hi
Is it possible to invoke Sitecore Powershell from a batch file?
I tried
powershell.exe Install-UpdatePackage -Path "Package.zip" -UpgradeAction 1 -InstallMode 1 –Verbose
but it returned an error "The term 'Install-UpdatePackage' is not recognized as the name of a cmdlet.
This makes sense since it is trying to invoke Windows Powershell and the cmdlet is not available.
How do I then call a Sitecore Powershell cmdlet from a bacth file. Not sure if this is even possible.
Rajat
Hi
Is it possible to invoke Sitecore Powershell from a batch file?
I tried
powershell.exe Install-UpdatePackage -Path "Package.zip" -UpgradeAction 1 -InstallMode 1 –Verbose
but it returned an error "The term 'Install-UpdatePackage' is not recognized as the name of a cmdlet.
This makes sense since it is trying to invoke Windows Powershell and the cmdlet is not available.
How do I then call a Sitecore Powershell cmdlet from a bacth file. Not sure if this is even possible.
Rajat