Cptrico Posted July 14, 2015 Author Posted July 14, 2015 Hi Mario,  Thanks for using the plugin.  The code is build to any CPU, which means it will work on 32 and 64 bit machines. I am running pulseway agent 4.7.6 and POTS 1.5 to test on my windows 8.1 laptop..  I ask through POTS if I am running 64 bit or not.. [Environment]::Is64BitProcess  And I get true back.I don't have the exchange mgmt pack on my machine so I can test..  Take a look at the script pack, I know Paul (digby) have a lot of exchange examples to try, he uses WMI if I recall correctly.. Chris 1
digbyp Posted July 15, 2015 Posted July 15, 2015 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    } Chris 1
Alan Reeves Posted August 12, 2016 Posted August 12, 2016 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 Â
Cptrico Posted September 2, 2016 Author Posted September 2, 2016 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 Paul Posted September 3, 2016 Administrators Posted September 3, 2016 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
JohnnyJoker Posted November 8, 2016 Posted November 8, 2016 Hey, it seems the Download Link (and the Page hosting it) is down?!
Administrators Paul Posted November 10, 2016 Administrators Posted November 10, 2016 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
tpaolillo Posted November 15, 2016 Posted November 15, 2016 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 Â
Cptrico Posted November 16, 2016 Author Posted November 16, 2016 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
tpaolillo Posted November 17, 2016 Posted November 17, 2016 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. Â
Administrators Paul Posted November 25, 2016 Administrators Posted November 25, 2016 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
JohnnyJoker Posted December 2, 2016 Posted December 2, 2016 On 10.11.2016 at 2:38 PM, Paul said: Hi Johnny, It seems to be working now. Can you check again? -Paul  Worked! Paul 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now