N-able RMM: Community Scripts - Page One

Last Modified

Thu Aug 22 22:33 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: 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: This is a VB Script that should be able to do what you are asking for. Simply change the URL with your URL in the variable named "strHomePage".
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: This is a Batch file that should be able to do what you are asking for. Simply change the URL with your URL on line 5, "REG ADD" command option "/d".
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: Testing xss please ignore this and I am just trying to get to 30 characters
DownloadProblem title: Create A Internet Explorer Setting script 
Problem description: Hi, I need to make changes to all the workstation on one of my network (about 50 stations) The change is in IE 10, and I need the following to happen: 1. Add some sites to the trusted sites list 2. Add sites to the Pop UP Blocker exception list 3. Increase the disk space size for browsing history - Not as important 4. Add site to compatibility view list Right now, the scope of the project is to do it manually to each workstation. It would be great to have one VB script that would do it all. 
Fix description: VBScript to A Internet Explorer Setting 1. Add some sites to the trusted sites list 2. Add sites to the Pop UP Blocker exception list 3. Increase the disk space size for browsing history But this version of script for local hosts .
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: This script PowerShell, to get the status of the recovery system and the date of creation of the latest recovery point.
DownloadProblem title: RMM Check: check User Account Control status 
Problem description: I'd like an RMM check that a Windows computer has UAC enabled. The check should fail if UAC is disabled. 
Fix description: PowerShell script to check User Account Control status . User must input only computer name (local or remote).
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: This script will check a Windows computer has System Restore enabled. The script will run in MAX RemoteManagement.
DownloadProblem title: Lock your computer 
Problem description: Script to Lock Windows workstation. 
Fix description: This batch file will lock a Windows 7, XP or Vista workstation
DownloadProblem title: Lock your computer 
Problem description: Script to Lock Windows workstation. 
Fix description: This VBscript will lock a Windows workstation.
DownloadProblem title: Download and Install BGINFO 
Problem description: BGINFO is used on all our sites so when doing diagnostics over the phone with a client they can give me the information direct from the desktop. It would be cool if RMM could push this out as part of their agent so all new customers have this appear. A customer visibly seeing that we know what is going on makes them feel better. 
Fix description: This VBscript will run Bginfo from Internet Explorer or other default browser.
DownloadProblem title: Download and Install BGINFO 
Problem description: BGINFO is used on all our sites so when doing diagnostics over the phone with a client they can give me the information direct from the desktop. It would be cool if RMM could push this out as part of their agent so all new customers have this appear. A customer visibly seeing that we know what is going on makes them feel better. 
Fix description: Vbscritp to Run Bginfo on Windows Workstetion(7,XP) and Server(2008). This script can run in MAX RemoteManagement.
DownloadProblem title: RMM Check: check User Account Control status 
Problem description: I'd like an RMM check that a Windows computer has UAC enabled. The check should fail if UAC is disabled. 
Fix description: PowerShell Script to check User Account Control status. I tested script on Windows 7 and Windows Server 2008 . This script will run in MAX RemoteManagement.
DownloadProblem title: Lock your computer 
Problem description: Script to Lock Windows workstation. 
Fix description: This version of script for you and can be run through MAX Remote Management. It will lock the Windows Workstation(7,XP) and server(2008).
DownloadProblem title: My temp directory got changed from c:\temp 
Problem description: Help! My temp directory got changed from c:\temp and I don't know how to change it back! 
Fix description: The environment variables are all stored under: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment You just need to create a script that changes the entry there. I've added an example of how it can be done in PowerShell below. Note that you need to be Admin to perform this operation.
DownloadProblem title: Random Number Generator 
Problem description: Does anyone have a VBscript to automate Generate Random Number (1 - 10000). I need to... 
Fix description: pretty straightforward. tested ok for me.
DownloadProblem title: Enumerating RSOP Sessions 
Problem description: Need to a script that will be returns information about the resultant set of policy session used in applying Group Policy to a computer. 
Fix description: Script returns information about the resultant set of policy session used in applying Group Policy to a computer. Tested on Windows XP,Windows Server 2003. Script can be run via 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: Original script: "Here a simple VB-Scipt that uses WMI to get Network Adapter information including the MAC address." Original script didn't include MAC Address. This one does include MAC and much more.
DownloadProblem title: Script to update Teamviewer to version 8 
Problem description: I would like to create a script which forces currently install TeamViewer 7 versions or earlier to update to version 8. I would like to do this via a script executed via RMM. 
Fix description: I used this script to installing Team Viewer 8 via RMM on my Windows 7 Work Station . I hope it will be helpful for you, too .
DownloadProblem title: Random Number Generator 
Problem description: Does anyone have a VBscript to automate Generate Random Number (1 - 10000). I need to... 
Fix description: VBScript to return random numbers 1-1000 . I think it is also useful for you.
DownloadProblem title: RMM Check: check User Account Control status 
Problem description: I'd like an RMM check that a Windows computer has UAC enabled. The check should fail if UAC is disabled. 
Fix description: modified DavYan's original fix to make check fail if UAC is disabled
DownloadProblem title: Can't get this .vbs script I came across to run in RemoteMax like other .vbs and no error, but when runs I double-click stand alone. 
Problem description: Can't get this .vbs script I came across to run in RemoteMax like other .vbs I use and no error, but when runs I double-click stand alone outside of RemoteMax environment. I also tryed the Reboot after N days script on this forum and same issue works outside of RemoteMax but never runs in RemoteMax. Appreciate any help! Const LogOff = 0, Shutdown = 1, Reboot = 2,PowerOff = 8 strComputer = "." Dim Act, Reply Set Act = CreateObject("Wscript.Shell") Reply = Msgbox("Message from your Gregory's Computer Repair, your computer is overdue for restart, Do you want to restart the computer now? ", 4 + 32, "Restart Or Continue") If Reply = 6 Then '''' FORCED REBOOT USING WMI Set WMISrv = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & strComputer & "\root\cimv2") Set ObjOS = WMISrv.ExecQuery("Select * from Win32_OperatingSystem") For Each StrOS in ObjOS StrOS.Win32Shutdown(Reboot + 4) Next End If If Reply = 7 Then msgbox "Please restart the computer when you can for best performance",0 + 32,"User Cancel Restart" End If 
Fix description: I modified gjohns28's original script . Change line 7 and now I think everything is OK :).
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: VBscript will allow you to automatically restart a local computer if the user has not done a complete shutdown in N Days. I set the script to 120 hours(5 days) but you can change this (parameter N)
DownloadProblem title: System Install Date 
Problem description: Is there a way to get an installation date System(OS) to a given computer name? 
Fix description: This version of script for running in MAX RemoteManagement .
DownloadProblem title: Backup to Shared Drive 
Problem description: I need a script that backs up files from local PCs to a shared network drive. These files would include everything in the Documents folder, the desktop, the NK2 file for outlook and the outlook data file. 
Fix description: This script works if I run it manually, but it does not work when it is run in RMM. It seems that the %USERNAME% variable does not work with RMM, the value of %USERNAME% is set to the name of the PC.... is there a work around for this?
DownloadProblem title: How can I create a file with the current date as the file name? 
Problem description: I want to use native Windows commands/utilities that would already be installed on a typical computer (XP, Vista, Win7, 8, 2003, 2008, 2012) so I don't need to add any additional software. I want to be able to create a file or folder with the current date in this format YYYYMMDD Ideally, I would like to use a batch file for this. I know about the command date /t but the output format is not very useful. I want to avoid WMIC and PS since they are often not available. Thanks in advance! 
Fix description: Here is one example for converting today's date to your preferred format. We use hyphens and I left them in for readability of the year, month, day parts.
DownloadProblem title: Script to send an alarm if a file(s) older than 
Problem description: Script to send an alarm if a file is older than a specified number of days. 
Fix description: editable variable $daysA = 5 $daysH = 10 $daysM = 4 parameters path+file name Ex :"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: Auto uninstall when deleted from the dashboard 
Problem description: When a customer ever stops using our monitor or MSP services, we need to uninstall the agent from their PCs. 1. This is a good practice for keeping things clean. 2. We don't want competitors who may follow us to find out what technology we're using. They need to build their own businesses themselves. It would be very helpful in these situations, if the agents would auto-uninstall themselves after we have deleted a client, site, server or computer from the dashboard. This would have saved us several hours when we recently lost a MSP customer with about 40 computers. 
Fix description: When computer is deleted from the dasboard the script will remove the agent from the computer. Windows VISTA Windows 7 Windows 8 Window 2008 Windows 2008 R2 Windows 2012 This script can be run in RMM
DownloadProblem title: Cleanup WSUS 
Problem description: There should be a automated task that cleans up a WSUS . 
Fix description: Powershell script will perform a clean up of updates in the WSUS database. Script uses the .Net class "Microsoft.UpdateServices.Administration" assembly.
DownloadProblem title: Windows update settings 
Problem description: PowerShell script to change windows automatic update settings. 
Fix description: Similar to the Power Shell script, but allows values to be passed through at "Command Line" in RMMMAX Automated Tasks -- acceptable values are: *1 = "Never check for updates" 2 = "Check for updates but let me choose whether to download and install them" 3 = "Download updates but let me choose whether to install them" 4 = "Install updates automatically"* otherwise it will return an error message.
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 .
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: PowerShell Script to check Firewall status. I tested script on Windows 7 and Windows Server 2008 .
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: PowerShell Script to check Firewall status. This script will run in MAX RemoteManagement.
DownloadProblem title: Script check Time Machine Backups and report how long since last good backup on Client Daily Report 
Problem description: There is not a built-in way to check Time Machine backups in the OSX Agent version 1.0. A script is needed to do this. I was going to post my script, but I do not have enough points, so I will try back tomorrow. 
Fix description: This is an Applescript solution that queries the Time Machine status directly rather than searching through the system logs. It will run as a script check. Currently set to fail after 2 days of no backup, but that's easily editable. 2 days was chosen because my need was for a laptop which isn't on and connected to the backup drive all the time. Based on a script from someone else, hence the copyright statement. Feel free to remove that before using, but the first line is necessary for the script to run: #!/usr/bin/osascript

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.