Jump to content
Sign in to follow this  
Shramp

Update Pulseway Manager Settings - Powershell

Recommended Posts

I created a simple script to update the Pulseway Manager settings. The script verifies if a directory exists, and if it doesn't then creates it. Afterwards, it downloads the file from the URL and saves it to the outpath. Then updates Pulseway Manager config with the file located in the outpath. This has been extremely useful for modifying settings and updating all agents with the new settings. The flow for this process is as follows:

1. Update settings on the Pulseway Manager application, export settings.

2. Upload the settings file to a cloud or web-based URL, I use AWS S3 buckets with a public URL.

3. Add the URL to the $url variable, and change the paths depending on your environment.

4.Create a task on Pulseway to run this a few times, to make sure everybody has their settings synced up properly.

**The config password should be blank if you didnt export with a password. If you exported with a password, put the password after configpassword=**

 

$url = "url-to-site-that-hosts-file (s3 bucket, google drive, etc)"
$outpath = "C:\IT\pulsewaysettingsupdate.pcmcfg"
$path = "C:\IT"

If(!(test-path $path))
{
      New-Item -ItemType Directory -Force -Path $path
}

$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile($url, $outpath)


'C:\Program Files\Pulseway\PCMonitorManager.exe /config=C:\IT\updatedDomainSettings.pcmcfg /configpassword=auto@2017'

updateSettingsForAgent.ps1

Edited by Shramp
missed adding an important point, grammar

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Sign in to follow this  

×
×
  • Create New...