Jump to content

Shramp

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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
×
×
  • Create New...