Cptrico Posted July 14, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
digbyp Posted July 15, 2015 Share 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 Link to comment Share on other sites More sharing options...
Alan Reeves Posted August 12, 2016 Share 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  Link to comment Share on other sites More sharing options...
Cptrico Posted September 2, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Paul Posted September 3, 2016 Administrators Share 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 Link to comment Share on other sites More sharing options...
JohnnyJoker Posted November 8, 2016 Share Posted November 8, 2016 Hey, it seems the Download Link (and the Page hosting it) is down?! Link to comment Share on other sites More sharing options...
Administrators Paul Posted November 10, 2016 Administrators Share 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 Link to comment Share on other sites More sharing options...
tpaolillo Posted November 15, 2016 Share 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  Link to comment Share on other sites More sharing options...
Cptrico Posted November 16, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
tpaolillo Posted November 17, 2016 Share 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.  Link to comment Share on other sites More sharing options...
Administrators Paul Posted November 25, 2016 Administrators Share 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 Link to comment Share on other sites More sharing options...
JohnnyJoker Posted December 2, 2016 Share 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 Link to comment Share on other sites More sharing options...
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