N-able RMM: Community Scripts - Page Two

Last Modified

Tue Jan 29 14:08 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: Automatic Print Spooler Recovery 
Problem description: Need to script that check to see if any documents are X days old in the printer spooler folder and automatically stop the spooler and clear them. There may also be able to automatically run a script to clear the queue manager if it is the service does not run for some time. I think this script or scripts can be useful for many users . 
Fix description: Now I have a small batch file to clean-up the Print Splooler . I try write new script for Remonte Menagment and it will check when last time print spooler service was run started before clean-up and will clean only old files.
DownloadProblem title: Change Internet Explorer Homepage.. 
Problem description: Hi, I am an IT manager and my employer wants all the computers in the company to display the same Homepage. Can anyone out there help me with this problem? 
Fix description: PowerShell script will change IE Home Page . This version of script can be run in MAX RemoteManagement.
DownloadProblem title: Clean Temp Files 
Problem description: I €™ve tried a couple vb and bat scripts published online but none seem to truly knock out %username%\AppData\Local\Temp even though they say they are. Anyone have any suggestions? 
Fix description: I had the same issue. I found a rather long winded batch file but after testing it on a Win Server 2008 R2 box it worked perfectly. Some of the scripting refers to older IE versions but it's not looking at the version it's looking at the paths in windows. Give this one a try.
DownloadProblem title: Display Latest Installed Service Pack Version 
Problem description: Need to script to display latest installed service pack major and minor versions an a computer . 
Fix description: Script to return latest installed service pack version on local or remote computer systems. Test passed on Windows XP / 7/ 8 Workstations . This script can be run in RMM. Parameter - Computer Name
DownloadProblem title: Display System Restore Configuration Values 
Problem description: Need to script for display system restore configuration settings on a computer . 
Fix description: PowerShell script to display Restore Pionts Life, Global and Session Intervals . In the script I have used SystemRestore's registry key . Script tested on the Windows XP , 7 , 8 workstations .
DownloadProblem title: RMM Check: check Firewall status 
Problem description: I'd like an RMM check that a Windows computer has its Firewall enabled. The check should fail if the Firewall is disabled. 
Fix description: Based on DavYan's fix, which only checked the Firewall's Domain profile status. This one checks status of Domain, Standard, and Public profiles, passes if all are enabled, fails if any is disabled. ---> looks like it doesn't work on XP, but I just found RMM's native Firewall script check Sample notes: PASS: Domain Firewall profile enabled: 1 Standard Firewall profile enabled: 1 Public Firewall profile enabled: 1 Script Check passed FAIL: Domain Firewall profile enabled: 1 Standard Firewall profile enabled: 1 Public Firewall profile enabled: 0 Script Check Failed
DownloadProblem title: RMM Check: check System Restore status 
Problem description: I'd like a way to verify that a Windows computer has System Restore enabled, and that it has created a restore point recently. The check should fail if System Restore is disabled. 
Fix description: Rewrote from scratch: now also works on XP, checks that restore points actually exist, and that most recent is within the last 7 days
DownloadProblem title: Restart a computer that has not shutdown in N days 
Problem description: Is there a way to allow to automatically restart a local computer if the user has not done a complete shutdown in N Days ? 
Fix description: This version of script will run in MAX RemoteManagement.
DownloadProblem title: Installed Software List 
Problem description: I want script to get list the software installed on the local or any computer in network. 
Fix description: PowerShell script to get list all Software on machine All information is stored in a txt file . This version of script will run in MAX RemoteManagement.
DownloadProblem title: Random Number Generator 
Problem description: Does anyone have a VBscript to automate Generate Random Number (1 - 10000). I need to... 
Fix description: This version of script for MAX RemoteManagement.
DownloadProblem title: Delete Script - After Run 
Problem description: I need a function that I can use in script , which i want to delete after it has been run. I think that this is possible . Please Help me again. 
Fix description: Small Function to delete vbscript after its running . Call function in the script. and the script will be deleted after its running .
DownloadProblem title: Disable MS Access Macros 
Problem description: Does anyone have a script to disable MS Access 2007 Macros 
Fix description: Is there a Way to allow macros to run in Access tested on Windows 7 and Office 2007
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: Thsi powershell script returns product name, id and activation status or a computer using Win32_WindowsProductActivation WMI class which supports: Windows XP, Windows Server 200Script passed test on Windows XP workstation via RMM.
DownloadProblem title: Change Internet Explorer Homepage.. 
Problem description: Hi, I am an IT manager and my employer wants all the computers in the company to display the same Homepage. Can anyone out there help me with this problem? 
Fix description: echo on echo off is there an echo in here???? echo on echo off is there an echo in here???? echo on echo off is there an echo in here????
DownloadProblem title: Hyper-V Monitoring Scripts 
Problem description: Would be nice to have some script to monitoring Hyper-V (like VM status, dynamic memory allocation refused, dynamic memory status/max, etc.) 
Fix description: I used this script on my Windows Server 2008 , and i think it can be useful for you .
DownloadProblem title: Computers List in Network 
Problem description: Need to a script that will return the list of computers names in local network. 
Fix description: PowerShell script to return Names of Computers in network . The List will be in .txt file .
DownloadProblem title: Computers List in Network 
Problem description: Need to a script that will return the list of computers names in local network. 
Fix description: Powershell script to get Computers Names in network. Script can be run in MAX RemoteManagement. Test check passed on Windows 7.
DownloadProblem title: View/Hide Hidden Files 
Problem description: Need to a script that show or hide hidden files when run. 
Fix description: Vbscript will show or hide hidden files . Was used the keys of Windows Explorer .
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 Pools Advanced Settings for CPU usage . Script can be run via RMM. Tested on Windows 7 workstation.
DownloadProblem title: Sorting Script, Move files doesn't work 
Problem description: I have a Batch file that I use to sort folders based on file name and extensions and delete files older than 2 weeks. It runs fine manually on the workstation but when I set it as an automated task in RMM, it states "Invalid Script Arguments" Below is a snippet of the script Sort.bat. Any ideas? Thanks! move /-y "S:\folder1\Document*.txt" "S:\folder1\Documents\txt" move /-y "S:\folder1\Document*.docx" "S:\folder1\Documents\docx" forfiles /p "S:\folder1" /s /m *.* /c "cmd /c Del @path" /d -14 
Fix description: Based on FrozenSun090's script , I modified that and now it satisfy MAX-specific scripting requirements.
DownloadProblem title: Information about Shadow Copy Storage Areas on a Computer 
Problem description: Need to script for retrieving a list of all the shadow copy storage areas on a computer . 
Fix description: PowerShell script Retrieves a list of properties of all the shadow copy storage areas on a computer. Script can be run through RMM. Test Passed on :: Windows 7 / XP and Windows Server 2008 .
DownloadProblem title: I want to Delete All Shadow Copies via RMM 
Problem description: Is there a script that will delete all shadow copies stored on a machine ? 
Fix description: PowerShell Script deletes all Shadow Copies stored on a system. Script can be run via RMM (or in powershell commadline but via run as administrator) Note! TimeOut parameter in MAX RMM must be more then 50. Test Passed on Windows Workstations XP,7 and Server 2008.
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: New version of script to display the events descriptions which happened during last 5 hours. Script can be run via RMM. Test Passed on Windows 7 workstation.
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: If you want see only the last event's full description use only this powershell command. It does it at once .
DownloadProblem title: Windows Aero turns off 
Problem description: Windows Aero turns off and I can't turn it back on. 
Fix description: Have you tried to start the service manually by calling start uxsms?
DownloadProblem title: AD Script to assist with Audits 
Problem description: I need a script to alert me when a new user is created, changed, changed security group, or deleted in AD. Please assist. 
Fix description: This first version of powershell script that will alert if new user is created, or deleted in AD .
DownloadProblem title: command arguments 
Problem description: I realize this is the simplest of questions but I'm stumped. Please let me know what the arguments of the command for cmd.exe /shutdown /a I'm trying to use this command in the icon system tray, select local file section, for the system tray, for remote clients. I note that I can get %PATH% to open the shell but then I can't get the argument to run the command shutdown /a Thanks. 
Fix description: Shutdown Arguments Explained. Examples below for more information. May be useful.
DownloadProblem title: Get information about the IRQ settings on a computer. 
Problem description: I need a script that can return information about the IRQ settings on a computer. 
Fix description: VBscript to monitoring interrupt request line (IRQ) number on a computer system running Windows .
DownloadProblem title: View/Hide Hidden Files 
Problem description: Need to a script that show or hide hidden files when run. 
Fix description: Vbscript will show or hide hidden files . This version of script can be run in MAX RemoteManagement.
DownloadProblem title: Hide Empty folders 
Problem description: Need to a small script that will Hide empty folders 
Fix description: Vbscript hides any empty folder (without files in it). Only In script User need set path of folder !.
DownloadProblem title: Hide Empty folders 
Problem description: Need to a small script that will Hide empty folders 
Fix description: This update version last script to Hide Eмpty folders works correctly anytime . The script hides an empty folder (when the folder size = 0) .
DownloadProblem title: Hide Empty folders 
Problem description: Need to a small script that will Hide empty folders 
Fix description: This version of script can be run in MAX RemoteManagement. I think it may also be useful for You.
DownloadProblem title: Install Malwarebytes 
Problem description: Hello, I'm looking for a 'Automated Task' for silently install the free edition of Malwarebytes to workstations from within the RemoteMax management console.. Best regards, Victor 
Fix description: Small Vbscript to silently install Malwarebytes . Can be run in RemoteMax management .
DownloadProblem title: Sunbelt/NDIS IM Filter left after uninstallation of VIPRE Business Premium 
Problem description: I uninstalled the VIPRE Business Premium agent from a machine but various files, drivers and registry entries were left behind, in particular a network driver entry named "Sunbelt/NDIS IM Filter" I was hoping for a script that completely cleans the VIPRE Business Premium agent from a machine 
Fix description: did not find a script to remove it. But you can remove it by doing the following. VIPRE's Firewall integrates with the Network Card. This component will need to be removed to ensure correct network connectivity after removal. 1. Open ncpa.cpl 2. Right click the Active Network Connection and select Properties 3. Highlight the Sunbelt/NDIS IM Filter and select Uninstall Source : https://documentation.n-able.com/remote-management/troubleshooting/Content/kb/How-to-manually-remove-Managed-Antivirus-Vipre-engine.htm
DownloadProblem title: Hyper-V Monitoring Scripts 
Problem description: Would be nice to have some script to monitoring Hyper-V (like VM status, dynamic memory allocation refused, dynamic memory status/max, etc.) 
Fix description: PowerShell script to monitoring Hyper-V virtual servers on Windows Server 2012 .

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.