Skip to content

scaffolding application for dotnet core mvc to run local powershell

Notifications You must be signed in to change notification settings

fxpatrick/webrunnerforpowershell

Repository files navigation

ASP.NET Core PowerShell Script Runner

Description

This repository provides a scaffold for integrating PowerShell script execution into an ASP.NET Core web application. It allows developers to run PowerShell scripts directly from the web server, enabling various automation tasks or system administration tasks to be performed seamlessly within the context of the web application.

Features

  • Integrate PowerShell script execution into ASP.NET Core applications
  • Execute PowerShell scripts asynchronously to avoid blocking the server
  • Real-time output streaming from PowerShell to the client browser
  • Easily customizable and extendable for specific use cases

Installation

To use this scaffold in your ASP.NET Core project, follow these steps:

  1. Clone this repository to your local machine.
  2. Copy the necessary files (controller, view) to your ASP.NET Core project.
  3. Customize the controller action and view as needed for your specific requirements.
  4. Make sure to update the path to your PowerShell script in the controller.

Usage

  1. Start your ASP.NET Core application.
  2. Navigate to the page where the PowerShell script execution functionality is available.
  3. Click the "Run PowerShell Script" button to initiate the execution.
  4. Monitor the real-time output of the PowerShell script in the browser.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and ensure they adhere to the project's coding style and guidelines.
  • Submit a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Special thanks to the ASP.NET Core community for their contributions and support.
  • Thanks to Microsoft for providing a robust framework for building web applications

About

scaffolding application for dotnet core mvc to run local powershell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published