[PLUGIN] PowerShell


Recommended Posts

Greetings,

 

I've authored a plugin to install Microsoft PowerShell. The plugin is found here: https://github.com/x-radeon/unraid-powershell

 

Please note I'm not experienced with writing plugins for Unraid, so install at your own risk. I use the plugin on two of my Unraid installs to manage my BTRFS snapshots with no issues, so I know it works. If you know how to write plugins, please help improve it! :)

 

Steps to install:

 

  1. On your Unraid install go to Plugins > Install Plugin
  2. For the URL, paste in https://raw.githubusercontent.com/x-radeon/unraid-powershell/main/PowerShell.plg
  3. Click Install

 

To use PowerShell after install, type pwsh at a terminal or call pwsh in a bash script (when using 'User Scripts" for example) like so:

#!/bin/bash

pwsh /boot/config/plugins/myscripts/script.ps1

 

-xRadeon

  • Like 3
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.