N-able RMM: Community Scripts - Page Five

Last Modified

Tue Jan 29 14:04 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: Cleanup WSUS 
Problem description: There should be a automated task that cleans up a WSUS . 
Fix description: variable $comp=gc env:computername # if the server is local if not <<$comp= ' '>> will be completed with the name of the server and the previous will be comented Some Wsus server have different port configured, by default is 80 but others are configured to run on "8530", depends by the infrastructure Tested: Windows 2008 Windows 2008 r2 Windows 2012 RMM RM
DownloadProblem title: Script for Wake on LAN 
Problem description: Is there a script that can be used for WOL workstations. Thank you 
Fix description: Download script and run with parameters your desired mac address . Example wake.ps1 001CC0940071
DownloadProblem title: Mail Queue size script check 
Problem description: Is there a script that will check Ðœail Queue size ? 
Fix description: Powershell function for check Mail Queue size and send warning if need .
DownloadProblem title: Mail Queue size script check 
Problem description: Is there a script that will check Ðœail Queue size ? 
Fix description: The script count the emails on the queue and return Success Message if is 0 and Error Message + number of the emails on the queue The script have one parameters and this is the version of the exchange (2007, 2010, 2012) To exclude the probability of the exchange PSSnapin to be loaded on powershell we made a call before count the message on the queue. recommended the timeout of the script to be higher then 20ms This script can be run in RMM.
DownloadProblem title: Display System Restore Configuration Values 
Problem description: Need to script for display system restore configuration settings on a computer . 
Fix description: Script to displays the current system restore configuration settings on a computer . Test Passed on the Windows XP / 7 / 8 Workstations . This Script can be run in RMM .
DownloadProblem title: Report for All Shadow Copies on a Computer 
Problem description: Is There script to Enumerate the properties of all the shadow copies stored on a server ? 
Fix description: Not sure if this is what you're looking for but I hope it helps.
DownloadProblem title: Lookup Windows Task Schedule 
Problem description: I dont know how to post a solution without a question. So ill make a question 1st. Script to lookup task status and error when task has an error 
Fix description: Script that will show number of jobs Then each status Then exit on an error code is an error is found
DownloadProblem title: Report for All Shadow Copies on a Computer 
Problem description: Is There script to Enumerate the properties of all the shadow copies stored on a server ? 
Fix description: Powershell script to get Properties List of all the shadow copies . This script can be run through MAX RM.
DownloadProblem title: I need some custom RMM scripts! 
Problem description: I am terrible at writing scripts and am looking for some one that can or already has. I would like a script, or scripts, to clean up a computer. Want to automate running the following programs: - "RKill" (http://www.bleepingcomputer.com/download/rkill/) - "TDSSKiller" (http://download.cnet.com/Kaspersky-TDSSKiller/3000-2239_4-12684178.html) - "Malwarebytes" (http://www.malwarebytes.org/) - "Superantispyware" (http://www.superantispyware.com/) - "Ccleaner" (http://www.piriform.com/ccleaner) - "StartUpLite" (http://www.malwarebytes.org/products/startuplite/). I can even provide a test machine if needed. You may contact me privately if you prefer. 
Fix description: Edit on the script : #editable Path for each tool . pay attention for rkill tool, use rkill.com not exe. Some times it's possible the rkill.exe to not delete the rkill_64 if the os where you running the script is x64. script have following switch 1 for rkill 2 for TDSSKiller 3 for mbam 4 for SUPERAntiSpyware 5 for CCleaner 6 for StartUpLite When setup the script on RMM RM the timeout should be more than 30ms otherwise the agent will return on RMM RM Dashboard "Output not found" . The timeout should be calculated on a slow computer for each tool to see which is the best timeout Tested: This script can be run in RMM. Windows 2008 Windows 2008 R2 Windows 2012 Windows 8 Windows 7 Windows Vista
DownloadProblem title: Can we display Microsoft Office License Keys? RMM - Asset Tracking 
Problem description: As part of Asset Tracking in RMM, is there a way to display the Microsoft Office license keys so that we may easily track which keys were used on each workstation? I am not sure if this is possible. Thank You! 
Fix description: I have powershell script to get Microsoft Officce Product Key use WMI Win32_Product class. But I'm not sure this is License Key or not , But may be this useful for you , too .
DownloadProblem title: Retrieve the OS details? 
Problem description: Is there a way I can easily retrieve the OS Name Version and CPU type? 
Fix description: Here's a PowerShell script to get OS Name, Version and Architecture. This script will run in MAX RemoteManagement.
DownloadProblem title: Monitoring Windows System Information 
Problem description: Is there a script that will collect information of Local or Remote System? (including System Name, OS Name , Version , System Model , Time Zone , Total Physical Memory , System Type , BIOS Version and etc. ) 
Fix description: Powershell script returns some Information about local or remote Computer System (Windows Workstations) . Using WMI's classes are Win32_ComputerSystem , Win32_operatingSystem , Win32_BIOS and ect .
DownloadProblem title: Install Malware Bytes 
Problem description: I'm looking for a script to automatically install malware bytes. I see RMM has scripts to update, scan, and repair MBAM but what if it was never installed in the first place? 
Fix description: Small Vbscript to silently install Malwarebytes . Can be run in RemoteMax management .
DownloadProblem title: Date Time and contents of text file captured in to RMM 
Problem description: I have a scheduled task that runs and when it is done puts the results in a text file. I would like a script for RMM that will capture the date and time a file is created (or modified either will work) along with the contents of this text file. 
Fix description: parameters on RMM filename path "d:\test.txt" Tested: Windows VISTA Windows 7 Windows 8 Window 2008 Windows 2008 R2 Windows 2012 This script can be run in RMM
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: PowerShell Script to Clean History , Cashe and Downloads for Internet Explorer .
DownloadProblem title: Internet Explorer LAN Settings 
Problem description: Is there a script that will return network information (including proxy server information) for IE ? 
Fix description: PowerShell script returns network information (including proxy server information) for Internet Explorer . Script only for Windows XP / 2000 Workstations and Windows Server 2003 . It can be run through MAX RM .
DownloadProblem title: Physical Memory Configuration 
Problem description: Is there a script that will collect information about the way physical memory is configured on a computer ? 
Fix description: Script returns information about the Physical Memory's Configurations on a computer .
DownloadProblem title: Certificate Expiration Dates 
Problem description: I'm looking for a script to check the expiration date's for all the certificates on the server. 
Fix description: The script return a file with the expired certificate stored on the specified location; this option by default is "d:\list.txt", but can be customized. Returnn Success Message + expire certificate if some certificate expiring and Success Message + no expiration certificate if no certificate expiring on specified threshold days Switch parameters: number of the day before expiring Tested: Windows 2008 Windows 2008 R2 Windows 2012 This script can be run in RMM.
DownloadProblem title: Physical Memory Configuration 
Problem description: Is there a script that will collect information about the way physical memory is configured on a computer ? 
Fix description: This version of script can be run through MAX RM and will return reports about RAM on a local or remote computer .
DownloadProblem title: Monitoring Windows System Information 
Problem description: Is there a script that will collect information of Local or Remote System? (including System Name, OS Name , Version , System Model , Time Zone , Total Physical Memory , System Type , BIOS Version and etc. ) 
Fix description: Computer System Monitoring script for run through MAX RM . Need Input Command Line parameter - System Name .
DownloadProblem title: Make Batch Script Fail 
Problem description: I have a batch script that backs users data up to a shared network drive. How do I show it as a failing script in the RMM interface if the backup does not run? Here is the script: echo ### Making Backup Location... if not exist "C:\Backup\%USERNAME%" mkdir "C:\Backup\%USERNAME%" echo ### Backing Up Files... robocopy "C:\Users" "C:\Backup\%USERNAME%\Users" /mir /np /xj /e 
Fix description: You can add in to your script standard output for RMM DashBoard . And may be it will solve your problem . For example in DOS Batch .
DownloadProblem title: Clean Up Recycle Bin 
Problem description: Is there a script that will clean up recycle bin ? 
Fix description: This Version of script to clean up recycle bin will run in MAX RemoteManagement. Test check passed on Windows 7.
DownloadProblem title: BlackList Check 
Problem description: Hi, I was hoping someone might have a script that can check if the IP address on a server agent for Remote Management has been added onto a black listing, either through one or multiple services? This would be helpful at sites with Exchange, where users also use the same connection for standard browsing (i.e. SME's). If we could then keep a check on each sites SPAM listing, and br pro-active as soon as a site is listed. Thanks 
Fix description: Not my fix, but found it at http://snipplr.com/view/64564/ The status is shown as "Listed" if the IP address appear on any DNS blacklist or "Not Listed" if it isn't blacklisted. So could be used in combination with the website check as well, with expected text "Not Listed".
DownloadProblem title: disable MAV from system tray 
Problem description: I would like to offer my clients a way to temporally disable MAV while they are installing software. But then I would like the MAV to start back up automatically. I would like to offer this option in the system tray settings it should say: "Disable Anti-virus" 
Fix description: Users can stop and restart the MAV service from the new Systray for instance. Disable Managed Antivirus > net stop "Managed Antivirus" Enable Managed Antivirus > net start "Managed Antivirus"
DownloadProblem title: Creates a system restore point on the local computer. 
Problem description: Is there a script for create a system restore point on the local computer ? 
Fix description: PowerShell script creates a new system restore point on a computer .If need turns on system restore . I used it on my Windows 7 workstation , but script passed test on the Windows XP , too . Note! : Script's Timeout must be ~ 100 .
DownloadProblem title: Stolen laptop tracking 
Problem description: A way to track a stole device location , when it is turned on . 
Fix description: Check the ip on the local adapter and check from external website and return success message and the ip. Tested: Windows VISTA Windows 7 Windows 8 Window 2008 Windows 2008 R2 Windows 2012 This script can be run in RMM
DownloadProblem title: Request for script to monitor RAID array 
Problem description: I require a script for monitoring RAID 1 on workstations and servers. Does anyone have a script for using SNMP to monitor a RAID array? One specific client has a Sabertooth x58 chipset board with RAID 1 that I intend to monitor. I'm aware that there are brand specific SNMP checks but this is a custom built computer. Anyone have a script for monitoring a RAID array that would work? For clarity, the client with the Sabertooth x58 chipset board had a RAID degradation issue where one drive failed. The client had to call me to inform me of an error. I did not receive an alert. The following week, the other drive failed. Again, the client had to call me. I would, of course, like to be aware of a RAID degradation issue or drive failure. So, this would be an essential check for me to include on any client that has a workstation or server with RAID arrays. 
Fix description: Using sharpsnmplib >> http://sharpsnmplib.codeplex.com/ Editable host value : $SNMPhost = "192.168.0.123" path of the sharpsnmplib.dll on the computer should be updated : [reflection.assembly]::LoadFrom( (Resolve-Path ".\lib\LexTmSharpSNMP\SharpSnmpLib.dll") ) Windows VISTA Windows 7 Windows 8 Window 2008 Windows 2008 R2 Windows 2012 This script can be run in RMM

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.