Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Posted

Hi Community,

I just want to share that I am soon going to release my first plugin on Pulseway forum.

The plugin is all about PowerShell, that's why I have decided to call it "PowerOfTheShell"

This plugin is for all those of you that want to run PowerShell script while you are on the go and get the results immediately from with in Pulseway directly on your device.
I use Powershell and C# almost every day in my line of work, so it was just very clear to me that I just had to write a plugin, that I could use with this great software.


Main features are:

  • The menu of PowerOfTheShell including subpages with script commands is easy to configure through a simple layout found in a config XML file.
  • Run any PowerShell script version 1.1, 2.0, 3.0, 4.0 and have the result(s) shown in Pulseway.
  • Supports WINRM scripts, Execute remote commands on several machines/servers and have the results in one place.
  • Last retrieved results including date and time, is always available while Pulseway is running.
  • Select max results to be shown. Good if your script returns a lot of results and you want to control the amount visible.
  • Information about script status Idle/running.
  • Configure plugin impersonation settings from within Pulseway Manager.
  • Support for Nested pages.
  • Support for Pulseway API 3.0 Input Controls.
  • Support for "partial" input control ( run scripts with or without all input values assigned )
  • Support for setting the log level in the plug-in configuration form.

Hope this can be interesting to some. The possibilities is endless if you can script it ;)

Best Regards
Johnni

*Update* 1.5 is out. (28-06-2015)
Download POTS
Please Try it out and let me know what you think :)
Changes:

  • Upon request I have added support for parameters that have spaces in the input controls e.g a string containing firstname and lastname are now seen as one parameter and not two. Making it possible to ask for more complex inputs
  • Build against System.Management.Automation 4.0
  • Code optimization and cleanup

Read the "read me first file" in the zip for more information.

*Script pack V1 is included in the zip.

http://pcm-plugins.blogspot.com/ View this blog I have been setting up for "how to".

post-20-0-10781300-1328294607_thumb.pngpost-20-0-92802600-1328294615_thumb.pngpost-20-0-43203800-1328294632_thumb.pngpost-20-0-53644000-1348762731_thumb.pngpost-20-0-37352900-1348762733_thumb.pngpost-20-0-17656100-1349732476_thumb.png

Edited by Cptrico

  • Replies 86
  • Views 68.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Plugin data entry items are not supported yet but will be added in a future PC Monitor release.

  • Hi all, Just released V1.2 of my plug-in. http://forum.pulseway.com/topic/274-poweroftheshell-plugin-10/page__view__findpost__p__1117 It now supports nested pages in the menu layout, please see doc

  • Hi Paul If you look in the zip you will actually see that you have the release folder that includes a very simple XML with only one script to try out. If you know the plugin and want to go full Mon

Posted Images

Featured Replies

I use the following code to determine if the snapin is loaded or not

 

 

    # Add Exchange 2010 commandlets (if not added)
    if(!(Get-PSSnapin | where-Object {$_.name -eq "Microsoft.Exchange.Management.PowerShell.E2010"}))
    {
      ADD-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue
    }

  • 1 year later...

Hi, thank you for POTS, I'm very impressed. I have a couple of problems, and wonder if you could give me some advice?

I am running a Powershell script to add a new user to Active Directory. Here is the config.xml for the script:

<?xml version="1.0"?>
<!-- Example Xml -->
<main>
  <group title="Emmanuel School Scripts" enabled="True" maxResults="500">
    <page title="User Admin" pageId="1" subtitle="User Administration Scripts" enabled="True">
          <subpage title="New User script" pageId="3" subtitle="Add a new user" enabled="True">
              <command title="NewUser" commandId="3" path="c:\scripts\newuser.ps1" arguments="" >                        
             <commandInput name="name1" inputType="TextInputItem" title="First Name" subtitle="Please enter First Name" />
             <commandInput name="name2" inputType="TextInputItem" title="Second Name" subtitle="Please enter Second Name" />
             <commandInput name="group" inputType="PickListInputItem" title="Student or Teacher" subtitle="Select Student or Teacher Account" >
                <pickItem title="Student" />
                <pickItem title="Teacher" />                
            </commandInput>
        </command>
        </subpage>
      </page>
   </group>
</main>

My problems are:

1. The script runs fine when run from a local logged-on session. It also runs fine in POTS, but in POTS it appears to get executed twice. I know this because the script has some code to test if the user has already been defined. So because the script is getting executed twice, the user gets defined the first time round, but I get an error message the second time around.

2. The "commandinput" data entry works fine from my Android phone, but when I run POTS(and Pulseway) in a Browser I cannot select the commandinput buttons to eneter the data. I have tried with IE and Firefox, with the same result.

Can you give any advice please?

KInd regards and thanks

Alan Reeves

 

  • 3 weeks later...
  • Author

Hi Alan,

Thanks for using POTS.
1. If the script your running should check if the resource exists already, I am not sure why it should run twice through because of that in POTS. I would need to understand how the script looks to figure out why it would run twice.
2. I don't know if there could be a compability issue showing the commandInput button in the new Web version. Also havd you made sure that the browsers you use when running web have been aproved in the Pulsway manager to run commands on the mentioned server ? only relevandt if you have limited the access to only some devices.

 

/Johnni

  • Administrators

Hi everyone,

In regards to the inputs on the WebApp, we don't support any form of API inputs for the HTML WebApp at this moment, they are planned to be introduced in the future. I'm sorry for the confusion this caused.

-Paul

  • 2 months later...

Hey,

it seems the Download Link (and the Page hosting it) is down?!

  • Administrators
On 11/8/2016 at 0:06 PM, JohnnyJoker said:

Hey,

it seems the Download Link (and the Page hosting it) is down?!

Hi Johnny,

It seems to be working now. Can you check again?

-Paul

Hi, I have searched and searched and cannot find the answer I needed. When I execute the Test script "windows.ps1" (and any others) I get the same error that the script cannot be loaded because running scripts is disabled. I've changed the execution policy to unrestricted for current user and still nothing. I'm at a loss..

Any help would be appreciated.

 

Thanks

Tony

 

  • Author

Hi Tony,

thanks for using ( trying ) the plugin.
So I am assuming that you can run powershell scripts on your server / client without any issues just fails using POTS right ?
And have you tried to have a look in the trace files with plugin diagnostics enabled in Pulseway manager. ( settings -> Diagnostics ) click the include Diagnostic logging for plugins.

//Johnni

Hi and thanks for the reply. Correct I can run the script locally on the machine but get that error when I run it in POTS. I just turned on the logging as well.

So in looking at the log file, I get this:

11/17/2016, 10:21:08.221: [Service] A request was received from a non authorized device and it was denied: Request Plugin page command 'PowerOfTheShell.Program[>x1x2x3x4x5<]204[>x1x2x3x4x5<]204' from device Id: '-----4f84d'
11/17/2016, 10:21:52.293: [Service] Received Request Plugin page command 'PowerOfTheShell.Program[>x1x2x3x4x5<]204[>x1x2x3x4x5<]204' from device Id: '-----EEEE', device name: Tony’s iPhone 7

My phone and all my other devices are authorized.

 

Capture.PNG

  • Administrators
Quote

A request was received from a non authorized device and it was denied

Try removing your devices and adding them again. It's possible that your device changed it's identifier (reinstalled the app maybe?).

-Paul

On 10.11.2016 at 2:38 PM, Paul said:

Hi Johnny,

It seems to be working now. Can you check again?

-Paul

 

Worked!

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.