Giter Site home page Giter Site logo

Comments (4)

michaellwest avatar michaellwest commented on May 26, 2024

I was asked today about designing the module so that you could plugin your own provider and still get the benefits of the powershell web service. I think of it like how could someone plugin their own SharePoint provide and still gain access to the powershell functionality as seen in the web service.

from console.

AdamNaj avatar AdamNaj commented on May 26, 2024

This is definitely important I just want to be cautious about how to do this.

from console.

michaellwest avatar michaellwest commented on May 26, 2024

I completely agree. I suppose in the planning of Issue #125 we can figure out how this should be done.

from console.

AdamNaj avatar AdamNaj commented on May 26, 2024

Finalized in commit 5d5ed4c. To enable remoting in your Windows PowerShell console copy the content of
/sitecore/system/Modules/PowerShell/Script Library/Functions/Remoting script and execute in your environment and then use it as follows:

  • Sample Execute Script Block on a Sitecore Server:
Set-SitecoreConfiguration 'http://hostname' 'admin' 'b'
Invoke-SitecoreScript { get-item master:\content\ } @{name = "value"}
  • Sample upload local C:\image.png to a Sitecore Server to "/sitecore/ media library/Path/an_image.png" path:
Set-SitecoreConfiguration 'http://hostname' 'admin' 'b'
Get-Item C:\image.png | Upload-SitecoreFile -remotePath "Path\an_image.png"

Naturally update the host name, credentials and parameters with the ones meeting your use case.

from console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.