Skip to content

Scripts should be easily executable from a batch file #80

@sharprajat

Description

@sharprajat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions