Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by BartB

  1. @Gabor Did you purposefully insert the code as an image, so we couldn't copy and paste it to reuse in your scripts? Retyping the whole thing can lead to mistakes and the script not executing correctly.

    Also, the article needs more practical examples on how to use the Custom Fields and the Custom Variables. I would like to do a check if an app is installed , update a Custom Variable and then use it in a Custom Field. It is really unclear at this point. 

  2. Here is an example of an install script that installs software that is downloaded from Dropbox. I obfuscated the Dropbox link. The script also depends on wget being installed, which I install on all agents using chocolatey.


    @echo off
    REM Check to see if the Support folder exists
    IF NOT EXIST C:\Support\NUL mkdir C:\Support
    REM Check if the wget.exe executable is available
    REM wget.exe is a commandline downloader
    REM It can be installed with chocolatey: choco install wget
    REM If wget.exe exists, go ahead and download the file from Dropbox
    IF EXIST C:\ProgramData\chocolatey\bin\wget.exe (
    	C:\ProgramData\chocolatey\bin\wget.exe -c -nH -nv --no-check-certificate https://www.dropbox.com/s/xxxxxxxx/Custom-RUT. -O C:\Support\Custom-RUT.
        ) ELSE (ECHO WGET is not installed - Aborting!)
    REM If rutserver is not already installed, go ahead and install it
    IF NOT EXIST "C:\Program Files (x86)\Remote Utilities - Host\rutserv.exe" (
    	msiexec /i C:\Support\Custom-RUT. /quiet /qn /norestart /log C:\Support\ruhost_install.log
        ) ELSE (ECHO Remote Utilities already installed - Skipping!)
    ::dir C:\support
    REM Check the installation log file, to see if the install was successful
    type c:\support\ruhost_install.log | find /i "Installation success or error status"
    exit 0;


  3. If you look into using chocolatey, it works quite nicely in Pulseway to install apps:

    choco install 7zip

    You would have to install chocolatey on the endpoint, but then you can use it to script installs, uninstalls and change Windows settings as well.

  4. I noticed that there is no Asset info section for Linux agents. Can this be added? I know that the Dev team relies on OS built-in commands to gather hardware and BIOS info for this section, so I wanted to offer some insight on how to gather hardware and BIOS info in Linux using built-in commands.

    Here is a gist outlining the basic commands for your Dev team reference:


    For those that do not want to click on a link to an external website, here is a snippet:

    How to view the system specs in linux
    Open terminal and type sudo dmidecode --type. 
    Don't click Enter yet! after --type, you can write bios or system, etc. to view the related specs. 
    For example: sudo dmidecode --type bios will display the BIOS specs.
    Complete list of "What can I write after --type" (common parameters are in bold):
    Base Board
    lshw: Will give you a very comprehensive list of hardware and settings.
    lspci: Will show you most of your hardware in a nice quick way. 
      It has varying levels of verbosity so you can get more information out of it with -v and -vv flags if you want it.
    lscpu: List available cpus and their caracteristics.
    If you ever need to get your hard drive’s model and serial number without physically looking at it, 
    you can do so with the hdparm command line utility. 
    This is especially useful if a manufacturer requires the serial number for an RMA or any other servicing needs.
    In this example, we are retrieving the model and serial number of the system’s first drive that is labeled /dev/sda:
    $ hdparm -I /dev/sda | grep -i number
    Model Number: WDC WD5000AAKX-00ERMA0
    Serial Number: WD-WMC2E0607821
    If you also want to see the size of all the disks in a system, you can easily view the size with:
    $ fdisk -l | grep -i ^Disk
    Disk /dev/sda: 500.1 GB, 500107862016 bytes

    I hope this helps getting the ball rolling on adding Asset Info to Linux agents.

  5. NirSoft's BrowsingHistoryView utility lets you see all browser history across multiple browsers on a PC. You can run it in command line and have it generate a report. You could push it out with a script in Pulseway, have it execute and then collect the report. At least it would be something.

    Also, this command in Powershell will give you cached DNS entries, which will indicate websites that were visited:

    ipconfig /displaydns | select-string 'Record Name' | foreach-object { $_.ToString().Split(' ')[-1]   } | Sort | Get-Unique | Out-File c:\Support\dns_dump.txt


  6. The following Event ID's from the Security log should help get you started:

    4634, An account was logged off.
    4647, User initiated logoff
    4624, An account was successfully logged on
    4800, The workstation was locked
    4801, The workstation was unlocked
    4802, The screen saver was invoked
    4803, The screen saver was dismissed

    This article explains how to use the Event ID's to create Notifications:



    Also, several things on your list are already included as built-in Notifications:


    For the other events, Google is your friend.

    And before someone complains that I'm answering a 2 year old post, I'm just trying to be helpful. Maybe someone will have the same question and then they'll have the answer.


  7. Any chance support could be added for XCP-NG - the open-source fork of Citrix XenServer? I can add one to the Server Manager, and connection tests OK, but it does not show up in the mobile app.


    I figured it out. I forgot about the Policy and that I need to enable XenServer support in the Policy first. Then it showed up in the mobile app.

  8. Try using the full path to choco.exe in your scripts, like this:

    IF EXIST C:\ProgramData\chocolatey\choco.exe (
    	C:\ProgramData\chocolatey\choco.exe install curl --no-progress -y
        ) ELSE (ECHO Chocolatey is not installed - Aborting!)
    Exit 0;


  9. Enable the Windows built-in local Administrator account and set a password. Also, hide the account from Login Screen, using the registry.

    net user administrator /active:yes
    net user administrator YourPasswordHere
    reg add "HKEY_Local_Machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v Administrator /t REG_DWORD /d 0 /f
    exit 0;


  10. Here is a script I use to implement a registry change to the HKCU hive:

    IF NOT EXIST C:\Support\WriteToHkcuFromSystem.ps1 (
    	C:\ProgramData\chocolatey\bin\wget.exe -c -nc -nH -nv --no-check-certificate https://gallery.technet.microsoft.com/scriptcenter/Write-to-HKCU-from-the-3eac1692/file/199836/1/WriteToHkcuFromSystem.ps1 -O C:\Support\WriteToHkcuFromSystem.ps1
    IF NOT EXIST C:\Support\FoxitPDF.reg (
    	C:\ProgramData\chocolatey\bin\wget.exe -c -nc -nH -nv --no-check-certificate https://www.dropbox.com/s/XXXXXXXXXXXXXXXXXXxxxxxxxxxxxx/FoxitPDF.reg?dl=1 -O C:\Support\FoxitPDF.reg
    Powershell.exe -ExecutionPolicy ByPass -File C:\Support\WriteToHkcuFromSystem.ps1 -RegFile C:\Support\FoxitPDF.reg -CurrentUser


  11. On 2/19/2019 at 8:29 AM, Chris said:

    Thank you for your suggestion. We already have the functionality (Notification based actions) as the confirmed feature, therefore it will be implemented into the future.

    @Chris Are you saying that "Notification based actions" are already implemented or are planned for a future release? Any updates on that feature being implemented and when approximately?

  12. I have started to use my Dropbox storage to both pull and push files from agent machines. Using Chocolatey, I install curl on the agent, and then using curl, I can upload files to Dropbox, via command line or script, to Dropbox. Or using tasks and scripts, I can push files to agents. Also, Chocolatey is wonderful for installing apps on remote agents. I use it as my 3rd party patching solution. Flash and Java get updated as soon as the new version is out :D

    I agree that the ScreenConnect Toolbox simplifies the process, but I also enjoy writing my own solutions for problems. And once I write a script, I can reuse it infinitely across multiple agents.

  13. On 2/27/2018 at 12:34 PM, alliedvoa said:


     msiexec /i https://www.pulseway.com/download/Pulseway_x64.msi /qn /ALLUSERS=1 username=UUU  password=PPP group=GGG server=SSS /L*v PulsewayInstall.log


    There should be no slash in front of ALLUSERS=1:

     msiexec /i https://www.pulseway.com/download/Pulseway_x64.msi /qn ALLUSERS=1 username=UUU  password=PPP group=GGG server=SSS /L*v PulsewayInstall.log

    Found that out after a couple of hours fighting with the script. And any values that have a space for the username, pass, or server need to be in quotes.


    And in case anyone is interested, this is the syntax for using Chocolatey to install the agent, and passing custom arguments to the installer:

    choco install pulseway --ia "'ALLUSERS=1 username=xxx password=xxx group=""xxx xxx"" server=""xxx.xxx.xxx"" /L*v ""C:\Support\PulsewayInstall_%COMPUTERNAME%.log""'"

    You need quotes around the server name, because of the periods, and yes, the odd double quoting after --ia is needed, per Chocolatey documentation. I have tested this and it works perfectly in my environment.

  • Create New...