Jump to content
Chris

Import Pulseway configuration from command line

Recommended Posts

In order to import a Pulseway configuration file you need to start PCMonitorManager (Pulseway Manager) from Pulseway's installation directory with the following parameters:

PCMonitorManager.exe /config=C:\Configuration\NoPassword.pcmcfg

If the exported configuration file contains the account details then you need to provided the configuration password as well:

PCMonitorManager.exe /config=C:\Configuration\WithPassword.pcmcfg /configpassword=s3cr3tpassw0rd

Note: The PCMonitorManager will not provide any console output or custom exit codes based to indicate the success of the operation.

Share this post


Link to post
Share on other sites

I am not able to get this to work. I export the pcmcfg file via the Gui, then attempt a import. The Gui starts, and the settings aren't the same as the configuration file. My plan is to create a script via SCCM that automatically imports the saved configure as I have seen the settings disappear at random intervals. We are running the OnPrem solution and any help is appreciated.

Share this post


Link to post
Share on other sites

Hi,

 

Make sure you have the Pulseway Windows agent 4.7.5 installed (check in the About tab).

 

Regards,

Chris

Pulseway Support

Share this post


Link to post
Share on other sites

Is there any way to use a variable for the computer name field like %COMPUTERNAME%, so that all the computers don't end up with the same name after importing the settings? 

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to the Pulseway community. If you don't specify the computer name variable, it will automatically use the computer name for the name field.

 

Regards,

Chris

Pulseway Support

Share this post


Link to post
Share on other sites

I have a script that dumps the config file from a central storage location to c:\temp. then runs this

 

 

"C:\Program Files\Pulseway\PCMonitorManager.exe" /config=c:\temp\Hyper-V2.pcmcfg /configpassword=(correctpassword)

 

this runs the program, but the settings are not imported, I reopen the console and my old settings are there, nothing changed.

 

I have tried manually running this from the local command prompt with administrator privileges and it still does not work.

 

I'm running version 4.7.6 Build 704

 

thoughts?

alternative ways of doing this?

I'm trying to load templates to 250 servers on my network and its not been going very well.

Share this post


Link to post
Share on other sites

Hi,

 

Can you please create a configuration export with fake account information and export it with a password then PM me the configuration file and the configuration password and I will attempt to reproduce it.

 

Regards,

Chris

Pulseway Support

Share this post


Link to post
Share on other sites

Hi all,

Can anyone provide assistance on how to push a base configuration to all workstation clients via GPO or script?  I got the GPO to perform the Pulseway agent install and able to applied the MST so it can authenticate to our assigned enterprise server.  However, all the monitor and alert settings are default.

Any help is appreciated.

Edited by gate122
spelling error

Share this post


Link to post
Share on other sites

Hi,

You can centrally manage the configuration of multiple systems through Pulseway Group Policies (not GPOs) which can be created from Pulseway Manager -> Manage Systems -> Manage Group Policies. A Pulseway Group Policy will override the local configuration however it will not overwrite it so if you disable a setting from the policy then the local configuration will take effect.

You can also use GPOs to push registry patches which will work however it's a lot more work to be done. To import a registry file from command line simply run: regedit UNC_PATH\export.reg. Only overwrite the values you need.

Alternatively you can have agents import their configuration from a file using the command line switches as instructed on this topic.

Paul

Share this post


Link to post
Share on other sites

Hi,

Can you PM me your arguments and the configuration file? Does Pulseway Manager import the configuration file when attempting to do it from the UI? Are you invoking the PulsewayManager app with administrative rights?

Chris

Share this post


Link to post
Share on other sites

Does this still work on 6.0?

I can import the config via the UI but not via command line or during an unattended installation as I was doing with 5.x versions. Even though I was able to import a previous version configuration via the UI, I still tried exporting a configuration from a 6.0 install to make sure it wasn't a version compatibility issue.

Thanks.

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.


  • Similar Content

    • By mark.vail
      after following this setup guild i am getting "-bash: /etc/init.d/pulseway: No such file or directory"
      looked inside that folder and did not see any pulseway scrips. is there another guild that i can follow that will be more helpful 

    • By unfeomateo
      I want to setup a SNMP notification for my canon printer.  The "printer status" OID will show nothing when the printer is working and show a number if there is an error. I have no idea what each and every error might show up as. 
      Is it possible to set the notification to alert me if that SNMP option changed from null to some number? Right now if I leave "value" blank I cannot click ok to finish. 
    • By kavaa
      I made a install script for 7-Zip to do a Silent install and clean if needed.
      Improvements are welcome!
      When a new version of 7-Zip comes out, just change the 7z1604-x64.msi to the new value.
      # Silent Install 7-Zip # http://www.7-zip.org/download.html # Path for the workdir $workdir = "c:\installer\" # Check if work directory exists if not create it If (Test-Path -Path $workdir -PathType Container) { Write-Host "$workdir already exists" -ForegroundColor Red} ELSE { New-Item -Path $workdir -ItemType directory } # Download the installer $source = "http://www.7-zip.org/a/7z1604-x64.msi" $destination = "$workdir\7-Zip.msi" # Check if Invoke-Webrequest exists otherwise execute WebClient if (Get-Command 'Invoke-Webrequest') { Invoke-WebRequest $source -OutFile $destination } else { $WebClient = New-Object System.Net.WebClient $webclient.DownloadFile($source, $destination) } Invoke-WebRequest $source -OutFile $destination # Start the installation msiexec.exe /i "$workdir\7-Zip.msi" /qn # Wait XX Seconds for the installation to finish Start-Sleep -s 35 # Remove the installer rm -Force $workdir\7*  
    • By lyoder
      This script will check to see if a VPN connection with the given name exists. If it does exist, it updates the VPN connection. If it does not exist, it creates a VPN connection with the given values.
      Note: I believe Pulseway runs PowerShell scripts under the Local System account by default (unless you have defined PowerShell User Impersonation in the Pulseway Manager, I think). In order to expose the VPN to users, this script runs against the Global Phone Book (-AllUserConnection switch). Therefore, this script does not check for the existence of VPN profiles stored in individual user Phone Books. (If an existing user VPN profile exists, this script will create a new VPN in the Global Phone Book, as it will not be able to see the existing user VPN.)
      This script was developed and tested on Windows 10, but should also work on Windows 8/8.1.
      PowerShell VpnClient documentation: https://docs.microsoft.com/en-us/powershell/module/vpnclient/?view=win10-ps
      ################################ # VARIABLES $Name = "VPN" $ServerAddress = "vpn.domain.com" # IP Address or FQDN $TunnelType = "Automatic" # Values: PPTP | L2TP | SSTP | IKEv2 | Automatic $L2tpPsk = '[Insert PSK Here]' $AuthenticationMethod = "MSCHAPv2" # Values: PAP | CHAP | MSCHAPv2 | EAP $EncryptionLevel = "Optional" # Values: NoEncryption | Optional | Required | Maximum $UseWinlogonCredential = $true $RememberCredential = $true $SplitTunneling = $true $DnsSuffix = 'domain.local' ################################ # If PowerShell supports VPN configuration, apply VPN configuration if (Get-Command 'Get-VpnConnection') { # If VPN exists, update VPN settings if (Get-VpnConnection -Name $Name -AllUserConnection -ErrorAction SilentlyContinue) { Set-VpnConnection -Name $Name -AllUserConnection -ServerAddress $ServerAddress -TunnelType $TunnelType -EncryptionLevel $EncryptionLevel -AuthenticationMethod $AuthenticationMethod -SplitTunneling $SplitTunneling -DnsSuffix $DnsSuffix -L2tpPsk $L2tpPsk -UseWinlogonCredential $UseWinlogonCredential -RememberCredential $RememberCredential -Force } # Else, create VPN connection else { Add-VpnConnection -Name $Name -AllUserConnection $true -ServerAddress $ServerAddress -TunnelType $TunnelType -EncryptionLevel $EncryptionLevel -AuthenticationMethod $AuthenticationMethod -DnsSuffix $DnsSuffix -L2tpPsk $L2tpPsk -Force Set-VpnConnection -Name $Name -AllUserConnection -SplitTunneling $SplitTunneling -UseWinlogonCredential $UseWinlogonCredential -RememberCredential $RememberCredential } return Get-VpnConnection -Name $Name -AllUserConnection exit } # Else, exit with failure code else { return "Client does not support VpnClient cmdlets" exit 1 }  
    • By awestwood
      Hi there!
      I am looking for a way to install a custom MSI pakage that I built on my endpoints via a script. I have the MSI package on my website. I need the script to download the MSI from my website, then execute in silent mode. Thank you!!
×
×
  • Create New...