N-able RMM: Community Scripts - Page Sixteen

Last Modified

Tue Jan 29 14:51 GMT 2019

Description

Disclaimer: Please note, if any items or other contains set forth herein is derived from N-able, any items or other content posted are provided as a suggestion or recommendation to you for your internal use. This is not part of the N-able software or services that you have purchased from N-able, and the information set forth herein may come from third party customers. Your organization should internally review and assess to what extent, if any, such custom items or recommendations will be incorporated into your environment. Any custom scripts obtained herein are provided to you "AS IS" without indemnification, support, or warranty of any kind, express or implied. You elect to utilize the custom scripts at your own risk, and you will be solely responsible for the incorporation of the same, if any.

Environment

  • N-able Remote Monitoring & Management (RMM)

Solution


Fix It Script List
 
DownloadProblem title: List of Installed Printers? 
Problem description: Is there a script to list all the installed printers on a workstation and return that info to the dashboard? 
Fix description: **VBScript to list all Printers on a System** *Formatted to give one Printer followed by the Port of Connection per line* Confirmed working in a 2003 (x86), Windows 7 (x64), and Server 2008 R2 platform
DownloadProblem title: List of Installed Printers? 
Problem description: Is there a script to list all the installed printers on a workstation and return that info to the dashboard? 
Fix description: PowerShell script retrieving information of all the installed printers on a workstation in RMM AMX RMM dashboard. Script passed test on Windows XP,7,8 workstations.
DownloadProblem title: Need notification if systems go offline 
Problem description: I am currently using RMM and was looking for a way to be notified if either complete sites or workstations go offline. I know the dashboard shows you this but I am referring to getting email alerts. Thank you! 
Fix description: Script checks the condition of the computer and if it is offline, then send email. Tested on windows 7 workstation and can be run via RMM RMM. Note! inpute your username and password.
DownloadProblem title: Alert when a workstation comes back online. for stolen equipment. 
Problem description: Looking for a way to get alerted when a device/workstation comes back online. This would be very helpful for when a device is stolen. 
Fix description: Script checks the condition of the computer and if it is online, then alert on the dashboard. Tested on windows 7 workstation.
DownloadProblem title: Uninstall a program through RMM automated tasks 
Problem description: Is there a way to setup an automated task that will automatically uninstall a selected program? Would like to set it up so that you send it once (I know RMM does not do a one run script) then could change the name the next time. It would be nice to do this over a group of computers instead of having to remote into every one to uninstall a title. 
Fix description: VBScript uninstalls a selected programon from a group of computers. It can be run through RMM like as automated task. Command line parametrs: ComputerName1,ComputerName2,etc. ProgramName Script passed test on Windows XP,7,8 workstations.
DownloadProblem title: Script to display a test window when a user logs in (a one off?) 
Problem description: Hi In RMM is it possible to create a script that will run at login, and display a message and then the user has to acknowledge it, and this generates a confirmation back to the dashboard that the user has seen it? EG Schedule task to run at 10am, or asap if missed User Logs in Message displayed Hi Jane its James from XX PC Co, I will need to reboot your machine at XX so please close your stuff then, it would have a button that says OK once clicked it sends a a response to the dashboard that the task completed OK If they don't see it / the button isn't pressed, then is fails Is this possible? thanks James 
Fix description: For this problem I can suggest these 3 scripts. First script sends a notification and creates a text file which stores the output. (Note!set reboot time) Second script creates scheduled task. Note! Need path of script. And third script shows a notification on dashboard.
DownloadProblem title: Script to display a test window when a user logs in (a one off?) 
Problem description: Hi In RMM is it possible to create a script that will run at login, and display a message and then the user has to acknowledge it, and this generates a confirmation back to the dashboard that the user has seen it? EG Schedule task to run at 10am, or asap if missed User Logs in Message displayed Hi Jane its James from XX PC Co, I will need to reboot your machine at XX so please close your stuff then, it would have a button that says OK once clicked it sends a a response to the dashboard that the task completed OK If they don't see it / the button isn't pressed, then is fails Is this possible? thanks James 
Fix description: Script creates schedule task. Note! Need path of script and set start time. Tested on Windows 7 workstation.
DownloadProblem title: Is there a way to monitor a service? 
Problem description: I would like to put a "watcher" if you will on a service on my computer to see what it is doing. Can this be scripted? 
Fix description: Here's a PowerShell script to monitor all services or one selected service. The data is dropped in a file called ServiceMonitor.txt which is in the same directory as the script is running in. This script should run through MAX RemoteManagement.
DownloadProblem title: Script to display a test window when a user logs in (a one off?) 
Problem description: Hi In RMM is it possible to create a script that will run at login, and display a message and then the user has to acknowledge it, and this generates a confirmation back to the dashboard that the user has seen it? EG Schedule task to run at 10am, or asap if missed User Logs in Message displayed Hi Jane its James from XX PC Co, I will need to reboot your machine at XX so please close your stuff then, it would have a button that says OK once clicked it sends a a response to the dashboard that the task completed OK If they don't see it / the button isn't pressed, then is fails Is this possible? thanks James 
Fix description: Script shows a notification on dashboard. Tested on Windows 7 workstation.
DownloadProblem title: Issue with bat file script 
Problem description: @echo off reg query HKCU\Software\CryptoLocker_0388\ >nul if %ERRORLEVEL% EQU 0 (echo "Error - the Cryptokey exists" exit 1001 ) ELSE ( echo "OK the Cryptokey does not exist" exit 0 ) Simple and works - except. If I run in as a test on the client agent - if fails if the registry key is there. Which is good. But if I just run the checks - it passes. Script Check (Crypto test batch,1225.bat,5,10) Why doesn't it fail when run by the agent ? rights to registry issues ? but then it runs ok when tested in the agent I have just test a vbs script Wscript.StdOut.Write"WARNING Crypto Key exists" wscript.quit(4000) Works with test under configuration on the agent - reports error as expected but doesn't work if you just run the checks. Can some one else confirm this ? or show what error I am making? 
Fix description: I tested script in Windows 7,8 and it passed test successfully via RMM dashboard.
DownloadProblem title: NovaStor Backup Monitor: 
Problem description: Wondering if any of you have a solution for monitoring NovaStor backups with Remote Management. If so, I need your help! Cheers, 
Fix description: VBScript monitors NovaStor backups outputs and retrieves reports in RMM. Script passed tes on Windows 7 and 8 workstations via RMM.
DownloadProblem title: Script for turn off local firewall 
Problem description: Is there a script in RMM for turn off local firewall ? 
Fix description: This script turns off local firewall. Tested on windows 7 workstation. Can be run via RMM.
DownloadProblem title: List of all installed Browsers 
Problem description: Is there a script in RMM which will return list of all Browsers installed on a computer ? 
Fix description: Powershell script returns list of Browsers which are exist on a computer. Script passed test on Windows 7 and 8 workstations via RMM.
DownloadProblem title: I Need aRMM script that will pass/fail a Barracuda backup 
Problem description: Many of our clients are using a Barracuda backup solution and I noticed that Barracuda is not one of the supported vendors in RMMMax console. 
Fix description: VBscript does monitoring Barracuda backup. Script passed test on Windows Server 2008 R2 via RMM dashboard
DownloadProblem title: Backup script for selected list of IP addresses. 
Problem description: I need a script that will create archives (tar.gz) of log files from workstations of the last day and save they in the server. Script can connect server with hosts via ssh by taking the IP addresses from a text file. 
Fix description: Scripting Language: Bash script This script creates archives (tar.gz) of log files from workstations of the last day and saves they in the server. Script connects server with hosts via ssh by taking the IP addresses from a text file.
DownloadProblem title: Unable to Verify Status - Dell RD1000 - Retrospect Software 
Problem description: Unable to check backup status of Dell RD1000's as client uses the packaged software called Retrospect, that is unsupported by RMM RM. 
Fix description: This powershell script gives reports about Retrospect Software from logs file in RMM. I don't sure that it can solve your problem, but it can be useful. Script passed test on Windows 7, 8 workstations.
DownloadProblem title: Move old log files out of C:\Windows\System32\winevt\Logs 
Problem description: Hello I need to be able to archive old log files from this directory I need to be able to move all archived log files (they all start with the word 'Archive' in the file name) to another directory - however this directory seems to have special permissions attached to it and you arent able to move files without stopping the event log service and the task scheduler service Has anyone developed a way of doing this? Not fussed on programming language 
Fix description: Script finds domain admin and writes it to a text file. Test on windows 7 workstation
DownloadProblem title: Script to monitor signature date Panda Cloud Office Protection 6.x 
Problem description: RMM does not support PCOP 6.x, this results in a "Product not found" alert. The below script reads the date from the signature file and uses this in the dashboard: Regards, Netice 
Fix description: Script from Netice to monitor signature date Panda Cloud Office Protection 6.x. Passed test on WIndows 7 and 8 workstations.
DownloadProblem title: Is there a way to display the IP address in a user friendly way? 
Problem description: I have an issue with some friends and family I try to help when I need their IP address but they don't know what they are looking at. Is there a way to send a script that they could run that will display this? 
Fix description: Here's a PowerShell script that gives you the local computer name and IP address. This script will run in MAX RemoteManagement.
DownloadProblem title: Move old log files out of C:\Windows\System32\winevt\Logs 
Problem description: Hello I need to be able to archive old log files from this directory I need to be able to move all archived log files (they all start with the word 'Archive' in the file name) to another directory - however this directory seems to have special permissions attached to it and you arent able to move files without stopping the event log service and the task scheduler service Has anyone developed a way of doing this? Not fussed on programming language 
Fix description: Powershell script moves all archived log files (they all start with the word 'Archive' in the file name) to another directory (e.g. C:\Log_Archives) , without stopping the event log service and the task scheduler service. Script passed test on Windows 7, 8 workstations and Server 2008,2012 via RMM.
DownloadProblem title: Does anyone have a script to query AD and advise what accounts are members of Domain Admins 
Problem description: Does anyone have a script to query AD and advise what accounts are members of Domain Admins 
Fix description: Script finds domain admin and writes it to a text file. Test on windows 7 workstation
DownloadProblem title: Deploy Applications 
Problem description: I need a script that will download a zip file (containing a silent installer application) from my website, extract it to a directory that I specify, then run the application with optional variables that I supply. 
Fix description: **VBScript to Download a User Defined Zip file, Extract it to a User Defined Location, and run specified file within** *Confirmed working in a 2003 (x86), Windows 7 (x64), and Server 2008 R2 platform* ***REQUIREMENTS of SCRIPT:*** -THREE Command Line Variables -Quotes around: *Defined File URL, Defined Directory, Defined FILENAME* -A ZIP file, hosted at File URL, containing installer *(intended to run silent Application Installs)* ***1st Variable*** - Admin defined Full File URL; example: "http://xxx.yyy.com/filename.zip" (must include zip in path) ***2nd Variable*** - Admin defined Directory on Target Machine for Extract; example: "C:\Directory" ***3rd Variable*** - Admin defined FILENAME of file to run (ex: install.exe) Full example: *"https://dl.dropboxusercontent.com/file/filenumber111/Deploy.zip" "C:\DLExtractRun" "Deploy.exe"* ***NOTES:*** -OPTIONAL Command Line Variables can be given; these are to follow the 1st THREE Required Example of Use with Optional Variables: *"https://dl.dropboxusercontent.com/file/filenumber111/Deploy.zip" "C:\DLExtractRun" "Deploy.exe" /silent* -This script is intended for the RMM Dashboard. If running from command line, two extra optional variables are needed at the end; suggestion for this: "" "" -***IMPORTANT: If using a Dropbox link, the file needs to be in your PUBLIC FOLDER*** To enable the Public Folder for Dropbox: https://www.dropbox.com/enable_public_folder
DownloadProblem title: Deploy ZIP File 
Problem description: I need a script that will download a zip file from my website and extract it to a directory that I specify. Is this possible? 
Fix description: **VBScript to Download a User Defined Zip file and Extract it to a User Defined Location** *Confirmed working in a 2003 (x86), Windows 7 (x64), and Server 2008 R2 platform* ***REQUIREMENTS of SCRIPT:*** -TWO Command Line Variables -Quotes around: *Defined File URL, Defined Directory* -A ZIP file, hosted at File URL ***1st Variable*** - Admin defined Full File URL; example: "http://xxx.yyy.com/filename.zip" (must include zip in path) ***2nd Variable*** - Admin defined Directory on Target Machine for Extract; example: "C:\Directory" Full example: *"https://dl.dropboxusercontent.com/file/filenumber111/Deploy.zip" "C:\TestDLandExtract"* -***IMPORTANT: If using a Dropbox link, the file needs to be in your PUBLIC FOLDER*** To enable the Public Folder for Dropbox: https://www.dropbox.com/enable_public_folder
DownloadProblem title: Create an automatically opening & closing Maintenance Window 
Problem description: The MAX RM agent can send off superfluous performance alerts during maintenance times like backups or anti-virus scans. Is there a way to keep these from being sent? 
Fix description: Ernest's script is awesome! We ran into a small snag in that our maintenance windows typically cross the midnight mark, so I modified his wonderful script to check for that as well. Simply put, if the second time is less than the first, the assumption is the second time of for the next day. Example of parameters: 22:15:00 00:15:00 Creates the first task starting today at 22:15:00 and the second task for tomorrow at 00:15:00.
DownloadProblem title: Malwarebytes Automation Script 
Problem description: Hi everybody, I'm looking for a script which can run a analysis on a USB device when plugged in. I already have a solution to detect when a device is plugged in with USBVirusScan software, so I just need a script which run an analysis on all drives excepts C:/ I don't know if it is possible? The idea is to create a decontamination computer, with an Antivirus and malwarebytes. Many thanks! 
Fix description: This script automatically runs Malwarebytes and performs a full scan. If you manually once set the full scan settings, then each time when you run script settings of scan will not change. Maybe it will be useful for you. Tested on windows 7 workstation.
DownloadProblem title: Check network share for free space. 
Problem description: Is there a script to add mapped drive for file storage and check network share for free space. 
Fix description: This Script creates mapped drive and then checks the status of a network share for free space. Test on windows 7 workstation and server 2008. Note! set mapping drive and path.
DownloadProblem title: Network scanning 
Problem description: Is there a script to scan all the IP addresses on a network and return the IP Address, MAC Address, Manufacturer, etc and report that data back to the dashboard? 
Fix description: **VBScript to perform a Network Discovery for all devices belonging to the Network(s) of Host** *Confirmed working in a 2003 (x86), Windows 7 (x64), and Server 2008 R2 platform* **REQUIREMENTS of SCRIPT:** 1) The *NMAP* Application must be installed on the Host associated with the script before running the script (http://nmap.org/download.html) *Note: If you have a Silent installer package for NMAP, you may attempt deployment utilizing: http://fixitscripts.com/problems/deploy-applications* 2) The Advanced Monitoring Agent Service must run under an account with Network Permissions (This script was tested with the Advanced Monitoring Agent Service running under a domain administrative account) *Note: The default Account used for the Advanced Monitoring Agent Service is LocalSystem. Most often LocalSystem does not have Network allowances* *No Command Line options are available for this script*
DownloadProblem title: Find and register files by extension 
Problem description: Hi everybody! I would like to make a list of files contained in a folder, optionnally with file's path, but ordered by extension names. I found a programm in batch, but I'm not successful to adapt it. http://www.developpez.net/forums/d774881/autres-langages/general-visual-basic-6-vbscript/vbscript/rechercher-fichiers-dont-l-extension-vbs/ Is there a solution? Many thanks! EDIT: **Ok, so yes there is a solution in batch:** @echo on for /r "\\192.168.2.11\my_directory" %f in (*.*) do echo %f > > C:\FTP\liste.txt COPY /B "C:\FTP\liste.txt" "C:\FTP\liste_modif.txt" //this is if you want to delete particular extensions// Findstr /I -v ".pdf .xlsx .msg .dot .dat .destination .xps .shs .vcf .cgm" < "C:\FTP\liste_modif.txt" > "C:\FTP\liste_modif_final.txt" //this is if you want to save only particular extensions// COPY /B "C:\FTP\liste.txt" "C:\FTP\liste_modif_finale_temp.txt" Findstr /I ".CATPart .CATProduct .CATDrawing .model .jt .stp .smg .dxf .cgm .vsd .cgr .plt .igs" < "C:\FTP\liste_modif_finale_temp.txt" > "C:\FTP\liste_modif_final_final.txt" Thanks a lot everybody, just test your solutions, works nice! 
Fix description: Powershell script returns list of files contained in a folder, optionally with file's path, but ordered by extension names. Need to input Folder Path and Extension. Script passed tes on Windows 7 and 8 workstations via RMM.
DownloadProblem title: Find and register files by extension 
Problem description: Hi everybody! I would like to make a list of files contained in a folder, optionnally with file's path, but ordered by extension names. I found a programm in batch, but I'm not successful to adapt it. http://www.developpez.net/forums/d774881/autres-langages/general-visual-basic-6-vbscript/vbscript/rechercher-fichiers-dont-l-extension-vbs/ Is there a solution? Many thanks! EDIT: **Ok, so yes there is a solution in batch:** @echo on for /r "\\192.168.2.11\my_directory" %f in (*.*) do echo %f > > C:\FTP\liste.txt COPY /B "C:\FTP\liste.txt" "C:\FTP\liste_modif.txt" //this is if you want to delete particular extensions// Findstr /I -v ".pdf .xlsx .msg .dot .dat .destination .xps .shs .vcf .cgm" < "C:\FTP\liste_modif.txt" > "C:\FTP\liste_modif_final.txt" //this is if you want to save only particular extensions// COPY /B "C:\FTP\liste.txt" "C:\FTP\liste_modif_finale_temp.txt" Findstr /I ".CATPart .CATProduct .CATDrawing .model .jt .stp .smg .dxf .cgm .vsd .cgr .plt .igs" < "C:\FTP\liste_modif_finale_temp.txt" > "C:\FTP\liste_modif_final_final.txt" Thanks a lot everybody, just test your solutions, works nice! 
Fix description: This simpler version of script which can be run without RMM.
DownloadProblem title: How can I get network adapter information? 
Problem description: I have a group of systems and I need to get network adapter information including the MAC Address. anyone have a script that can do this...? 
Fix description: DFASDFASDFASDFASDFASDFADFASFASDFASDFAS

In addition to the Community Scripts, review the N-able Automation Cookbooks to leverage automation policies, custom monitoring, and scripts to gain more efficiency in your business.