N-able RMM: Community Scripts - Page Seventeen

Last Modified

Tue Jan 29 14:11 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: Mac Address from a computer? 
Problem description: Is there any way to get the mac address from a computer that you may or may not be on? 
Fix description: Gets the MAC addresses from a local or remote computer. This script will run in MAX RemoteManagement console.
DownloadProblem title: Script to delete the Windows hidden uninstall patches older than "X" number of days. 
Problem description: Is there a script for deleting the Windows hidden uninstall patches older than "X" number of days ? 
Fix description: Powershell deletes the Windows hidden uninstall patches older than "X" number of days.(e.g. 5) Script Passed test on WIndows 7 and 8 workstations via RMM.
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: This script returns the IP Address, MAC Address, Manufacturer, etc. Tested on windows 7workstation and can be run via RMM.
DownloadProblem title: Keep the 4 last characters of every file's lines 
Problem description: Hi everyone! I've got a text file (.txt) which contain a list of files contained in a directory. I want to keep only the extension of the files listed into my text file. In other words, just keep the 4 last characters of each line. Or just letters after the last dot. *Example:* Before: C\documents and settings\user\file.bat After: .bat Is there a solution? Many thanks, it could save my day ;) 
Fix description: Here's the solution, in batch language (why I have to type more than 30 characters? That's stupid...):
DownloadProblem title: Group Policy to update 
Problem description: I need a script that will update the Group Policy. It would be useful. 
Fix description: This script updates the Group Policy and there is no need to restart your computer. Tested on windows 7 workstation.
DownloadProblem title: Keep the 4 last characters of every file's lines 
Problem description: Hi everyone! I've got a text file (.txt) which contain a list of files contained in a directory. I want to keep only the extension of the files listed into my text file. In other words, just keep the 4 last characters of each line. Or just letters after the last dot. *Example:* Before: C\documents and settings\user\file.bat After: .bat Is there a solution? Many thanks, it could save my day ;) 
Fix description: This script returns only the extension of the files listed into text file and saves it to a text file. Tested on windows 7 workstation.
DownloadProblem title: Enable RemoteDesktoP 
Problem description: Is there a script in RMM for enabling Remotedesktop mode ? 
Fix description: This powershell script enables RemoteDesktop mode using registry key: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections" Script passed test on Windows 7 and 8 workstations.
DownloadProblem title: Find or reset terminal server user session. 
Problem description: I need a script that will find a terminal user session on the server, and if it possible to reset them. 
Fix description: This script returns list of users server sessions and the result is stored in a text file. Tested on server 2008. Can be run via RMM.
DownloadProblem title: Find or reset terminal server user session. 
Problem description: I need a script that will find a terminal user session on the server, and if it possible to reset them. 
Fix description: This script resets all users server sessions and the result is stored in a text file. Tested on server 2008. Can be run via RMM.
DownloadProblem title: Script to get screen resolution 
Problem description: I need a script in RMM that will get screen resolution(Screen Height and Screen Width). 
Fix description: This script is getting screen resolution: ScreenHeight and ScreenWidth. Tested on windows 7 workstation. Can be run via RMM.
DownloadProblem title: Script to delete files older than X days 
Problem description: Need a script to delete files older than a specified number of days. 
Fix description: VBscript deletes files and folders older than a specified number of days. User can change days count in code and necessary input path of directory. Script passed test on Windows 7, 8 Workstations and Server 2008 R2 via RMM.
DownloadProblem title: Mac Address from a computer? 
Problem description: Is there any way to get the mac address from a computer that you may or may not be on? 
Fix description: Gets the IP and MAC addresses from a local or remote computer. This script will run in MAX RemoteManagement console.
DownloadProblem title: JavaScript Displays Current Date-Time On Web Page 
Problem description: Is there a javascript for displaying current date and time which can be used in html (web page). 
Fix description: JavaScript displays current date time on web page formatted in m/d/yyyy hh:mm AM/PM. Script passed test!
DownloadProblem title: Consolidated event log view for local or remote servers and workstations 
Problem description: Is there a script for retrieving event logs in RMM dashboard ? 
Fix description: VBscript retrieves Windows event logs' source and messages in RMM for local(or remote) server or workstation. If need to see additional properties of events user can use Win32_NTLogEvent class' other metrics. Script passed test on WIndows 7 and 8 workstations and Servers 20008,2012 via RMM.
DownloadProblem title: Treesize (top 10 directories containing large amount of space) 
Problem description: Looking for a treesize script that can be run after a hard drive space alert. Something that might look at the top X (defined variable) number of folders found on the source volume with a file size no smaller than X mb. 
Fix description: I paid someone 4 years ago to write this script, although it works great and outputs what is expected, for RMM to work with it I am afraid (unless I am not seeing something) that you cannot have RMM run a script then read a TXT file as part of an entire process. So this script would need to be modified to output to the terminal for RMM to capture? I would say do away with the Include Drives and make it specific to the drive needing to be run against. However I am again uncertain if RMM will allow for a dynamic input variable to be used Example case this would be run: RMM Detects hard drive space threshold has been met, (again ideally) RMM would run this script against the hard drive needing more info on. Technician gets an alert that says Hard drive is 80% Full and here are the top 10 directories containing large files. Syntax for this script to work: cscript scan4size.vbs c:\treesize.txt 10 10 0
DownloadProblem title: Treesize (top 10 directories containing large amount of space) 
Problem description: Looking for a treesize script that can be run after a hard drive space alert. Something that might look at the top X (defined variable) number of folders found on the source volume with a file size no smaller than X mb. 
Fix description: Script finds folders from source volume(e.g. D:\) which sizes greater than X(e.g 400) MB. Necessary to input source volume or path of directory , also if it necessary you can change MaxSize in code. Script passed test on Windows 7 and 8 workstations via RMM.
DownloadProblem title: Email Auto Login 
Problem description: Is there a script for automaticly login email(gmail) ? 
Fix description: Powershell script will automatically log into a web email client. Script is currently configured for GMail. And it passed test on WIndows 7,8 workstation via I.E 9 and 10 versions .
DownloadProblem title: Disable and lock JS support in Adobe Acrobat 11 
Problem description: Is there a script in GFM MAX RMM for disable and lock JavaScript support in Adobe Acrobat 11 ? 
Fix description: PowerShell script using registry keys. disables and locks JavaScript support in in Adobe Acrobat 11. Script passed test on Windows 7 and 8 workstations via RMM.
DownloadProblem title: Install RMMMAX from Labtech 
Problem description: We are looking to move away from LABTECH, and wanting to do as quickly as possible. I have been fighting with running a script from Labtech to install RMMMAX. I had heard others have done with but I am fighting with it. Does anyone have a sample script that they have done this with? 
Fix description: Sample batch file which downloads and installs an MSI via a website.. Note, in order to allow for seperate installer files I would recommend you pass the company specific installer via the batch command line... E.g Company name = **typhoon-ltd** run installRMMmax.bat **typhoon-ltd** This will then download and install the msi named typhoon-ltd.msi.. I've also added a basic file exist check to ensure if you run the installer multiple times It won't install each time..
DownloadProblem title: Script to get the name of Installed Antivirus. 
Problem description: I need a script to find the name of installed antivirus. 
Fix description: This script returns information about installed antivirus product. Tested on windows 7 workstation. Can be Run via RMM.
DownloadProblem title: Take screenshot of current user's session 
Problem description: I would like to be able to take a screenshot of the user's session by check or task. Any idears? 
Fix description: This script allows you to take a screenshot of the entire desktop and then saves the screenshots into a MS Word Doc. Tested on windows 7 workstation.
DownloadProblem title: Clear IE Cache. 
Problem description: I need a script to clear the cache of Internet Explorer. 
Fix description: This script clears the cache of Internet Explorer (Deletes Temporary Internet Files Only). Tested on windows 7 workstation (IE9).
DownloadProblem title: A script to clear browsing history, download history, and empty the cache for IE, Chrome, & Firefox. 
Problem description: Has anyone created a script to clear browsing history, download history, and empty the cache for IE, Chrome, & Firefox. Other browsers could be added as well. Would be good to have a script for each and one that does all. 
Fix description: Batch script to clear browsing history, download history, and empty the cache for Chrome. Script can be run through RMM RM
DownloadProblem title: Clear IE Cache. 
Problem description: I need a script to clear the cache of Internet Explorer. 
Fix description: This script clears the cache of Internet Explorer. Tested on windows 7 workstation (IE9).
DownloadProblem title: Clear IE Cache. 
Problem description: I need a script to clear the cache of Internet Explorer. 
Fix description: This script clears the cache of Internet Explorer Tested on windows 7 workstation (IE9)
DownloadProblem title: USB Drive Monitor 
Problem description: IS there a script for monitoring USB disk drives and keep reports in RMM dashbord ? 
Fix description: Powershell script retrieves information about USB disk drives. Script passed test via RMM on Windows 7 and 8 workstations.
DownloadProblem title: Fragmentation Analyse 
Problem description: Is there a script for doing analyse the fragmentation status of all the volumes ? 
Fix description: VBscript analyses the fragmentation status of all the volumes on a computer. Script passed test on Windows 7 and 8 workstations and Server 2008,2012.
DownloadProblem title: Script to send an email with an attachment. 
Problem description: Is there a script via powershell for send a message with an attached file? 
Fix description: Script sends an email with an attached file. Tested on Windows 7 worksation.
DownloadProblem title: Test-Pingable to sites 
Problem description: Is there a script in RMM for testing pingable to list of ip address (sites) written in text file ? 
Fix description: VBscript tests pingables to all addresses(sites) , that you write in txt doc . You need to write the path of txt doc in code.(64 line). Script passed test on Windows 7 and 8 Workstations via RMM.
DownloadProblem title: Script for add a Web Site to the Favorites 
Problem description: Is there a script in RMM for adding web site to the list of favorites ? 
Fix description: Powershell script adds web site to the favorites in Internet Explorer. Script passed test on Windows 7 and 8 workstations via RMM.
DownloadProblem title: python script cant find file 
Problem description: Hey all I have a python script that downloads a ninite update and then i run a batch script to actually run the downloaded exe silently. The problem I am having is my script works great when I run it from my pc. Downoads to the download folder like it supposed to. I have uploaded it to RMM and setup an automatic task for it. When it runs I get an "Error: The system cannot find the file specified." not really sure where to dig in on this one? my current code is below. import os import urllib url = 'www.downloadSite.com' # where to get the file from dest_dir = os.path.expandvars('%userprofile%/Downloads/ninite') # where to put it # make the directories (recursively) try: os.makedirs(dest_dir) except OSError: # ignore errors pass # download the file urllib.urlretrieve(url, os.path.join(dest_dir, 'ninite.exe')) 
Fix description: Review and edit Jake's phyton script for running via RMM like Automated task. Script Passed test on WIndows 7 workstation via RMM.
DownloadProblem title: How to Determine SSL Version. 
Problem description: I need a script to create a certificate that will store information about SSL. 
Fix description: ###Scripting Language: Bash script This script creates a certificate that stores information about SSL.
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: Hi all Do you mean like below powershell script I have created 1 year back https://dl.dropboxusercontent.com/sh/7fwyxkfiud4mrid/XAgFZiiRje/mbam1.0.0.1.ps1?dl=1&token_hash=AAHpAWLzEAa_LImGKFGgYvqL4z7RKtAYXjkAxP1znv230w If you need to automate your any task please contact to me (nitesh.bhat@gavinit.com) Thanks, Nitesh Bhat Infrastructure Analyst and Developer Gavin Technologies Pvt. Ltd Phone: +91-99-167-16612 Url : www.gavinit.com Delete 8 hours ago
DownloadProblem title: Adding Logoff, Restart, Shutdown to desktop? 
Problem description: Often I get people wanting a faster way to logoff, restart and shutdown. I know how to add those shortcuts to the desktop manually but is there a script I can run to automate this quickly? 
Fix description: VBScript script adds Restart, Shutdown, Logoff icons to the desktop on error resume next. This will run through MAX RemoteManagement.

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.