Jump to content

BartB

Members
  • Posts

    34
  • Joined

  • Last visited

Everything 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. There is a whole set of Powershell commands to work with Hyper-V virtual machines: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/try-hyper-v-powershell You can create a Powershell script in Pulseway - it's as simple as: Stop-VM -Name TestVM Start-VM -Name TestVM Just RTFM for other command uses.
  3. 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.6.10.10.0.msi?dl=1 -O C:\Support\Custom-RUT.6.10.10.0.msi ) ELSE (ECHO WGET is not installed - Aborting!) ECHO: 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.6.10.9.0.msi /quiet /qn /norestart /log C:\Support\ruhost_install.log ) ELSE (ECHO Remote Utilities already installed - Skipping!) ::dir C:\support ECHO: 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;
  4. 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.
  5. Create a script in Pulseway that runs the batch file, like this: "c:\users\jayden\desktop\batch_file.bat" You may want to read up on how to actually create scripts in Pulseway by reading the manual: https://intercom.help/pulseway/en/articles/821208-configuring-automation-tasks
  6. Does the script work locally, if you launch it on the target machine in command line, without using PSexec? Also, have you looked through the command line switches available with uTorrent - maybe you need to specify some more parameters in your script? https://www.netcheif.com/Articles/uTorrent/html/AppendixB_04.html
  7. 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: https://gist.github.com/flatlinebb/87bba149eed8ce91b8553c20dfae027d 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): Memory BIOS System Base Board Chassis Processor ... 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.
  8. Mikrotik seems to support this protocol. What on earth made you both think that Pulseway has anything to do with routers?
  9. @amol, maybe this list will help you, since you didn't specify which AV you are trying to remove: https://support.eset.com/en/kb146-uninstallers-removal-tools-for-common-windows-antivirus-software
  10. Why can't we just go back to the previous web design? Make it a choice. Don't force us to use something YOU think looks good.
  11. 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
  12. Is there Dark Mode in the Web App? I think he's taking about Windows interface, not mobile.
  13. 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: https://intercom.help/pulseway/windows-agent-configuration/windows-event-log-monitoring/how-to-configure-the-windows-event-log-monitoring 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.
  14. 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. EDIT: 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.
  15. Try using the full path to choco.exe in your scripts, like this: @ECHO OFF 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;
  16. Try running your script like this: start C:\Windows\System32\notepad.exe That should launch the app on the agent Desktop.
  17. 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;
  18. Here is a script I use to implement a registry change to the HKCU hive: @ECHO OFF 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
  19. @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?
  20. Moving Scripts between folders would be wonderful! Definitely second that suggestion.
  21. 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 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.
  22. I am also interested in testing the new Pulseway Rd with File Transfer. Please add my name to the Beta as well.
  23. 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.
  24. I entered "https://my.pulseway.com" and it worked for me, and I have a Pro account. Took some time to start collecting data though.
×
×
  • Create New...