Jump to content
Quenten Grasso

Change System Group Script

Recommended Posts


So as I start to get used to Pulseway, here's quick script I've made up to change the *Nix/Win computer group on the fly. I haven't yet found an easier way to do it yet.  This seems to work for me so hopefully it helps someone else.

I've just created a Script Category and added a version of this script per customer/group in this folder.  So create your script edit the Group below to suite your requirements.

Linux/Bash Tab

if [ -f /bin/sed ] 
cp /etc/pulseway/config.xml /etc/pulseway/config.xml.backup
/bin/sed -i '/<ComputerInformation Name="" Group="/c\<ComputerInformation Name="" Group="My Company - Linux Servers"/>' /etc/pulseway/config.xml
echo "Sed not found!"

Windows/Powershell Tab

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name GroupName -Value "My Company - Windows Servers"


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now