N-able RMM: Community Scripts - Page Eighteen

Last Modified

Tue Jan 29 14:09 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: 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: Here's a powershell blacklist check that gives return codes that RMM should recognize. Taken originally from here http://powershell.org/wp/forums/topic/ps-script-check-ip-against-blacklist-email-results/ and then I beefed up the server list and added the exit codes
DownloadProblem title: Rename My Computer Icon 
Problem description: Small Power Shell or VB scripts for renaming the My Computer Icon on the Local Computer with or without RMM 
Fix description: VBscript renames the "My Computer" icon on the "Local Computer" . Script can be run in RMM . Tested passed : Window 7 , 8 and Server 2008 .
DownloadProblem title: Rename My Computer Icon 
Problem description: Small Power Shell or VB scripts for renaming the My Computer Icon on the Local Computer with or without RMM 
Fix description: This version of script for renameing My Computer icon via Power Shell . This version caqn be run in RMM , too. It passed test on Windows XP, 7, 8 Workstations and Win 2008 Server .
DownloadProblem title: List of Installed Hot Fixes 
Problem description: Is there a script for enumerating hot fixes installed on a computer ? 
Fix description: Script returns basic information adout all hot fixes installed on a computer. It can be run via RMM. Tested on Windows 7,8 workstations and Server 2008
DownloadProblem title: Script for Creating Shadow Copy 
Problem description: Useful script in RMM for creating shadow copy . 
Fix description: PowerShell script Creates a client-accessible shadow copy of drive C . Script can be run via RMM . Test passed on Windows XP,7 and Server 2008
DownloadProblem title: Operating System Monitoring 
Problem description: Script for retrieving information about the operating system installed on a computer in RMM . 
Fix description: PowerShell script returns information about the operating System , including Build Number, Installation Date, Free Physical Memory and etc. This script will run in MAX RemoteManagement. Test passed on Windows XP/7/8 WorkStations and 2008 Server .
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: Yup just run the powershell I have attached. You can even monitor all of them with this script!! It drops it in a file called ServiceMonitor.txt which is in the same directory as the script is running.
DownloadProblem title: Monitoring Pointing Devices Installed on a Computer 
Problem description: Is there a script that will let me collect information about the pointing devices installed on a computer? 
Fix description: PowerShell script retrieves information about the pointing devices installed on a computer . Runs on Windows XP, 7, 8 : Script can be run in RMM
DownloadProblem title: Collect DNS servers and Domain Name on a local computer . 
Problem description: Is there a script that will return a list of the DNS servers and Domain's Name on a local computer ? 
Fix description: VBscript returns a list of the DNS servers a local computer , and Domain's Name ! Script can be run in RMM. It passed test on Windows XP/7/8 Workstations and 2008 Server.
DownloadProblem title: View Microsoft Office Product Keys 
Problem description: I need to view Microsoft office product keys at various clients without Volume Licensing. Is there a script to do this? 
Fix description: PowerShell script for getting Microsoft Office Product ID and Product Key without Volume Licensing (using only Registry Keys). It can be run in RMM .
DownloadProblem title: List of Start Menu Items 
Problem description: Is there a script for Enumerating Start Menu Items ? 
Fix description: Script returns a list of all the Start Menu Items on a computer . Runs on Windows XP / 7 Workstations and Server 2008 . Script can be run in RMM.
DownloadProblem title: Uninstall RMM via a script 
Problem description: I need to set up a removal script for the stand alone package- here is the cmd line from RMM Silent uninstall of the Agent from the Command Line Where the Agent was installed either manually or via the Remote Worker it may be removed silently using the unins000.exe" /silent string. For example: "C:\Program Files\Advanced Monitoring Agent\unins000.exe" /silent "C:\Program Files (x86)\Advanced Monitoring Agent\unins000.exe" /silent From their page- http://kb.RMM.com/articles/SkyNet_Article/How-to-uninstall-the-Advanced-Monitoring-Agent Thank you thank you 
Fix description: This small powershell script uninstalls Advanced Monitoring Agent . Script will do it silently if it Runs as Administrator .
DownloadProblem title: Uninstall RMM via a script 
Problem description: I need to set up a removal script for the stand alone package- here is the cmd line from RMM Silent uninstall of the Agent from the Command Line Where the Agent was installed either manually or via the Remote Worker it may be removed silently using the unins000.exe" /silent string. For example: "C:\Program Files\Advanced Monitoring Agent\unins000.exe" /silent "C:\Program Files (x86)\Advanced Monitoring Agent\unins000.exe" /silent From their page- http://kb.RMM.com/articles/SkyNet_Article/How-to-uninstall-the-Advanced-Monitoring-Agent Thank you thank you 
Fix description: This version of script can be run in RMM . It may be useful If you want uninstall your Agent on local or remote computer via RMM dashboard . It can be automated task .
DownloadProblem title: script to send an email when an item is detected 
Problem description: I'd image that this should be rather simple for those who are familiar or have expertise in VBScript. Basically, I'm in need of a script to send an email to administrator via SMTP when an item is detected in a particular folder. Many thanks. 
Fix description: VBscript sends an email when an item is detected in specified folder . NOTES! When Script runs it works in infinite cycle! You can use it in RMM as Automated Task. Script Requires CDO, (Outlook) .
DownloadProblem title: Uptime of a local or remote computer 
Problem description: Is there a script in RMM for getting local or remote system uptime ? 
Fix description: PowerShell script returns the uptime of a local or remote computer in a network . For remote computer script command line parameter in RMM dashboard must be computer name. Tesed on Windows workstations 7,8 and Server 2008 .
DownloadProblem title: Collect Resultant Set of Policy User Privilege 
Problem description: Is there a script that will get information about user privileges assigned by using Group Policy ? 
Fix description: Script returns information about user privileges assigned by using Group Policy . This version of script can be run only on Windows XP workstations and Server 2003. It can be run via RMM.
DownloadProblem title: Getting the Internet Explorer Connection Information 
Problem description: Is there a script for retrieving basic connection information for Internet Explorer ? 
Fix description: This version of script use WMI MicrosoftIE_ConnectionSummary class for retrieving basic connection information (including whether HTTP 1.1 has been enabled) for Internet Explorer. It script can be run in RMM , but only for Windows XP and Server 2003 machines .
DownloadProblem title: Remote Shut down of a computer? 
Problem description: Is there a script I can run that will remotely restart or shutdown a computer on my domain? 
Fix description: Here is one that I use. You need to know the computer name(s) and obviously they have to be on.
DownloadProblem title: Getting the Internet Explorer Connection Information 
Problem description: Is there a script for retrieving basic connection information for Internet Explorer ? 
Fix description: Script returns basic connection information for Internet Explorer . Test Passed on Windows 7,8 and Server 2008. Script can be run in RMM.
DownloadProblem title: Getting Parallel Port Properties 
Problem description: Is there a script for Retrieving Parallel Port Properties installed on a system via RMM ? 
Fix description: PowerShell script returns information about the parallel ports installed on a computer . Runs on Windows 8,7,XP workstations and server 2008 . Script can be run in RMM.
DownloadProblem title: Edit script to display last event description 
Problem description: I need to edit this script to just display the last event and not them all strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colLoggedEvents = objWMIService.ExecQuery _ ("Select * from Win32_NTLogEvent Where LoRMMle = 'Application'and " _ & "EventCode = '10177'") For Each objEvent in colLoggedEvents Wscript.Echo "Event date: " & objEvent.TimeGenerated Wscript.Echo "Description: " & objEvent.Message Next I have removed the for each but get errors 
Fix description: I reviewed script and modified that. Now it works without errors and returns only last event's generated date and description.
DownloadProblem title: Setting System Startup Delay 
Problem description: Is there a script for changing default value of System Startup Delay via RMM ? (instead of the default 30 seconds _ 10 or little) 
Fix description: Configures a computer to wait 10 seconds (instead of the default 30 seconds) before automatically loading the default operating system upon startup. Tested on Windows XP. Script can be run via RMM..
DownloadProblem title: Display Windows Product Activation Status 
Problem description: Is there a script for getting product activation information (mainly activation status :licensed/unlicensed) for a computer ? 
Fix description: PowerShell script returns Windows product activation status for local system using SoftwareLicensingProduct wmiclass which supports: minimum client : Windows 7. minimum server : Server 2008 R2. Script passed test on Windows 7 workstation and Server 2008 R via RMM.
DownloadProblem title: Suppressing Windows Activation Notices 
Problem description: Is there a script which will suppress the Windows Activation reminder notices on a computer . (prevent users from seeing the periodic reminders) ? 
Fix description: Suppresses the Windows Activation reminder notices on a computer. This does not preclude the need to activate the computer; it simply prevents users from seeing the periodic reminders. Tested on Windows XP,Windows Server 2003.
DownloadProblem title: Report Hyper-V Guest Status to RMM 
Problem description: Anyway to add to the 24x7 check the status of the Hyper-V guest. I had a VM that went to the saved state without notification. Would love to get alert if the status went to Saved or Paused. 
Fix description: This script returns only Hyper-V VM-s state and if they are in not running state it throws error message and script fails check in RMM RMM dashboard .
DownloadProblem title: IRQ Settings Monitoring 
Problem description: Is there a script in RMM for monitoring the IRQ settings on a computer ? 
Fix description: PShell script returns information about the IRQ settings on a computer. Script can be run in RMM. Test passed on windows 8/7/XP workstations and 2008 server.
DownloadProblem title: Monitor Individual CPU Cores? 
Problem description: Is it possible to monitor CPU Cores individually? I have encountered an issue recently where a buggy application caused a single core to reach 90% usage but the overall CPU usage stayed below 20% so didn't trigger an alert. Would be a nice feature. Cheers, Dan. 
Fix description: PowerShell script does CPU Cores usage individual monitoring in the current time. Script can be run in RMM like as automated task . Tested on Windows 7 workstation and Server 2008 .
DownloadProblem title: Desktop Settings Monitor 
Problem description: Need to script for retrieving the current desktop settings for a computer in RMM. 
Fix description: Script returns list of the current desktop settings on a computer. It can be run in the RMM. Test passed on : Windows 7, XP work stations and 2008 server.
DownloadProblem title: Some local machines need to be locked ... 
Problem description: Some local machines in my company need to be locked during a certain time of day. Is there a script out there that can lock a local workstation? 
Fix description: This VBscript does just what you want, you can set a time limit in minutes and it will lock the workstation after the set time has expired.
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: This will return all of that for you.
DownloadProblem title: Internet Explorer Security Zone Settings 
Problem description: Is there a script in RMM for getting the current setting level for each Internet Explorer security zone ? 
Fix description: Script returns the current setting level for each Internet Explorer security zone . This version of script can be run only on Windows XP work stations and 2003 server. It can be run via RMM.
DownloadProblem title: Getting Processor Information 
Problem description: Is there a script in RMM for enumerating Processor Information ? 
Fix description: PowerShell script retrieves information about the processors installed on a computer. Script can be run in RMM. Test passed : Windows 7 Windows XP Windows Server 2008.
DownloadProblem title: Run Cryptoprevent.exe /silent with RMM 
Problem description: I was trying to figure out a way to run the cryptoprevent by foolish IT http://www.foolishit.com/vb6-projects/cryptoprevent/ he has made a portable version that i can run by executing cryptoprevent.exe /silent. Im new to RMM scripting so i was looking for a little help on how to run this. Thanks in advance. 
Fix description: This is the script I used. It is a modified version of the ninite script that many use for ninite/RMM integration.
DownloadProblem title: IIS 7.0 - Application Pool Monitoring 
Problem description: Is it possible to monitor IIS 7.0 Application Pools? For example CPU usage, Stopped, Started etc? 
Fix description: PowerShell script returns IIS 7.0 - Application Pool State. Script can be run via RMM or "Powershell Run as Administrator" cmd. Tested on Windows 7 Work Station.
DownloadProblem title: RMM RM Automated task: remove Java from a system 
Problem description: IF EXIST "%CommonProgramFiles%\Java" wmic product where "name like 'Java%'" call uninstall /nointeractive IF EXIST "%CommonProgramFiles(x86)%\Java" wmic product where "name like 'Java%'" call uninstall /nointeractive 
Fix description: VBS script to Remove All Versions of Java for All Windows based Pc's via RMM RMM Dashboard with Automated Task and/or Script Check. in Script Command Line put: cscript java-remove.vbs /keeponly I increased the timeout to 150 seconds as several computers had multiple versions & it took longer than the default 10 seconds.
DownloadProblem title: Retrieve RMMmax DeviceID thru script 
Problem description: Hello, How can i retrieve the DeviceID in RMMMax? 
Fix description: List of all Device ID installed on a computer. Tested on Windows XP and 7 workstations. Can be run via RMM RMM.
DownloadProblem title: Computer Bus Properties 
Problem description: Is there a script in RMM for returning information about the computer bus ? 
Fix description: PowerShell script enumiretes computer BUS Properties . Script can be run via RMM. Test passed on Windows XP,7,8 and Server 2008
DownloadProblem title: View Microsoft Office Product Keys 
Problem description: I need to view Microsoft office product keys at various clients without Volume Licensing. Is there a script to do this? 
Fix description: New version of script by VBscript returns Microsoft Office Product Id , Key and Windows OS Architectures . Script can be run via RMM .
DownloadProblem title: RMM Script to force PC log off wont run 
Problem description: the script will run when double clicked but can not get it to run through RMM Automated tasks. Any help would be appreciated The script is simply to force a user to log off the computer at a specific time, time is set by the automated task. Set wshShell = WScript.CreateObject ("WSCript.shell") wshshell.run "shutdown /l /f" 
Fix description: I modified script and now it can be run through RMM Automated tasks . I tested it on my Windows 7 workstation.
DownloadProblem title: Installed or Advertised Components and Applications 
Problem description: Is there a way in RMM for getting all Windows Installer installed or advertised components on a computer ? 
Fix description: Powershell script represents all installed or advertised component or application available on the system using Win32_ApplicationService WMI class . Script passed test on Windows 7,8 workstations via 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.