N-able RMM: Community Scripts - Page Ten

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: Internet Explorer COM Object Settings 
Problem description: Is there a script for retrieving Internet Explorer COM Object Settings under WIndows XP via RMM ? 
Fix description: Script returns basic COM class information for Internet Explorer. Runs on Windows XP and Server 2000,2003. Script can be run via RMM.
DownloadProblem title: Teamviewer Silent Uninstall VBS 
Problem description: We built this Script to uninstall an auto update to Teamviewer that was provided by RMM. The update broke our take control capabilities. It is recommended to turn off Take Control globally, then ignore updates to Teamviewer in the Patch Management User Policies. After that, upload script to the User Scripts and run across all sites. Once this is done turn Take Control back on. Dim objShell Set objShell = WScript.CreateObject( "WScript.Shell" ) objShell.Run "taskkill /im teamviewer.exe", , True objShell.Run "taskkill /im teamviewer.exe", , True Teamviewer Sub Teamviewer() On Error Resume Next objShell.Run("""%ProgramFiles%\TeamViewer\Version6\uninstall.exe"" /S") objShell.Run("""%ProgramFiles%\TeamViewer\Version7\uninstall.exe"" /S") objShell.Run("""%ProgramFiles%\TeamViewer\Version8\uninstall.exe"" /S") objShell.Run("""%ProgramFiles%\TeamViewer\Version9\uninstall.exe"" /S") End Sub Set objShell = Nothing Thanks, Matthew Chisenhall Mattchis Technologies 
Fix description: We built this Script to uninstall an auto update to Teamviewer that was provided by RMM. The update broke our take control capabilities. It is recommended to turn off Take Control globally, then ignore updates to Teamviewer in the Patch Management User Policies. After that, upload script to the User Scripts and run across all sites. Once this is done turn Take Control back on. Thanks, Matthew Chisenhall Mattchis Technologies
DownloadProblem title: Not availabe in a while... 
Problem description: I need something that can let me know when a computer or server, has not been available in a while. If it has been turned off or not connected to Internet at a certain time, it may happen that Client no longer use their equipment? 
Fix description: This version of script can be run via RMM dahsbord and reports state of computer and connection to Internet. Script passed test on Windows XP,7,8 workstations and server 2008. If necessary input parameters have not been inputted script will work for local computer.
DownloadProblem title: Install / Run PatchMyPC 
Problem description: This is a Power Shell script for downloading and running PatchMyPC. You will need to change the profile path for the download / execute location. I have had the most luck copying this to a network share and then calling it from a batch file in RMM's Automated Task's. It helps mop up Java, Flash, and Windows updates, and I use several of the optional applications for additional system maintenance. 
Fix description: This is a Power Shell Script I have used for PatchMyPC. I thought we had it running from a network share. Looks like it only works if you copy the script to the local system. I have tested this on Windows 7 x86 and x64.
DownloadProblem title: List of Startup Commands 
Problem description: Need to a script for enumerating startup commands on a computer via RMM . 
Fix description: Enumerates all startup commands on a computer. Test passed on Windows 7 workstation and server 2008. Can be run via RMM.
DownloadProblem title: Can't seem to get a simple script to run from RMM Remote Automated Tasks 
Problem description: I have created an Automated Task in RMM and I can't seem to get it to work. If I run it manually on the PC it works great, but it doesn't seem to apply if I run it from RMM. Below is the power shell script I copied from this site. Once I run it from RMM I get a response back that says "Summary: IE HomePage has been changed!!! Script Check passed". However when I check it. The home page wasn't changed. Thanks! ###Script to Change Internet Explorer HomePage $ErrorActionPreference = "Stop" Try { $computer="localhost" $hkcu = 2147483649 $key = "Software\Microsoft\Internet Explorer\Main" $property = "Start Page" $value = "http://changewebpage.com" $wmi = [wmiclass]"\\$computer\root\default:stdRegProv" $rtn = $wmi.SetStringValue($hkcu,$key,$property,$value) if($($rtn.returnvalue) -eq 0) { Write-Host IE HomePage has been changed!!!} Write-Host "Script Check passed" Sleep(3) Exit 0 } Catch {Write-Host("Script Check Failed") Exit 1001} 
Fix description: This modified version of script . It passed test like DSC check on WIndows 7 for I.E 9 . Try use this script like DSC or standart 24x7 check in the MAX RMM.
DownloadProblem title: Enumerate Computer Startup Options 
Problem description: Is there a script for return the list of StartUp options for a computer ? 
Fix description: Returns a list of startup options for a computer, including the startup delay time and other information found in Boot.ini. Test passed on Windows 7, 8 workstations and server 2008 R2 . Script can be run via RMM.
DownloadProblem title: MSSQL Server service state 
Problem description: Is there a script in RMM for detecting SQL Server state on a computer.(running,paused,stopped etc.) 
Fix description: PowerShell script Indicates whether SQL Server is running on a computer . Test Passed on Windows 7 workstation and Server 2008 R2 via RMM.
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: I found this other Vbscript one which will allow you to find info out on a remote computer too!
DownloadProblem title: Enumerating ProgIDs 
Problem description: Is there a script for retrieving ProgIDs (Programmatic Identifiers) found on a computer ? 
Fix description: Script returns a list of ProgIDs found on a computer. Tested on Windows 7, XP workstations. Can be run via RMM.
DownloadProblem title: Show System Tray Always in notification area 
Problem description: Hi Everyone ! Is there a script to enable the icon of System Tray from RMM to always show in the notification area ? It would be trully appreciated, thanks 
Fix description: Powershell script puts System Tray icon in Notification Area. So SysTray icon becomes visible always. Script passed test on Windows XP, 7, 8 workstations and can be run via RMM.
DownloadProblem title: Enumerate recovery configuration options 
Problem description: Need a script to return the list of settings that indicate the action to be taken by a computer . 
Fix description: Script returns a list of settings that indicate the action to be taken by a computer. Test passed on Windows 7, 8 workstations and server 2008 R2 . Script can be run via RMM.
DownloadProblem title: List the Boot Configuration Properties 
Problem description: Is there a script that returns boot configuration information for a computer? 
Fix description: Script returns boot configuration information for a computer. Script can be run via RMM. Test passed on Windows 7, 8 workstations and server 2008 R2 .
DownloadProblem title: Script To Check if Task in Windows Task Scheduler Has Run 
Problem description: Is it possible to make a script that will check if a or all tasks in Windows Task Scheduler have run? Thanks in advance! 
Fix description: I have a VBS Script we use. Seems to work well.
DownloadProblem title: Script for Creating Shadow Copy 
Problem description: Useful script in RMM for creating shadow copy . 
Fix description: Batch file for auto creating shadow copy of drive C . It can be run via RMM , too.
DownloadProblem title: Create a Shadow Copy Storage 
Problem description: Need to script for creating a shadow copy storage area (for examp.): on drive D for storing shadow copies of drive C . 
Fix description: This is the same script via batch file . It can be more useful in RMM . Test passed on WIndows XP,7,8 workstationa and Servers 2003, 2008 R2
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: Here batch file to delete all shadow copies automaticly via RMM. This version of script passed test on Windows 7,8 and server 2008 R2.
DownloadProblem title: Time Zone Information for a Computer 
Problem description: Is there a script in RMM to retrieving information about time zone configured on a computer ? 
Fix description: PowerShell script returns information about the time zone configured on a computer . Script can be run via RMM. Test Passed on Windows XP, 7, 8 workstations.
DownloadProblem title: I need to have RMM tell me when a program is not running. 
Problem description: If the program could run as a service it would be easy but alas no windows service to latch on to. Anyone have a script that I can put any program into to check and make sure it is running? Right now I need to have SugarSync always running on the server or the owner comes unglued when it's not. Thanks, Dan 
Fix description: Script sends notification of program status (running/not running). Tested on Windows 7 Script can be run via RMM.
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: I found another one that gathers even more information about a local or remote computer.
DownloadProblem title: Script to brand System Properties Window 
Problem description: Hi It would be good if there could be a script that downloads a JPG to the machine and then brands the System Panel in windows XP-8 I have foud this, but it doesnt seem to do a single script for RMM [link text][1] [1]: http://adminnexus.blogspot.co.uk/2012/09/adding-company-specific-branding.html If anyone can help that would be great Ideally, it would have a company logo and then OEMManufacturer=My Company OEMSupportHours=7:00 AM to 5:00 PM OEMSupportPhone=(800) 555-1111 OEMSupportURL=http://MyCompany.com/ITSupport OEMLine1=Call the Help Desk at x1234 for computer problems. something like this thanks 
Fix description: PowerShell script downloads a logo(JPG,bmp,etc) to the machine and and then brands the System Panel . ( Manufacturer, SupportHours, SupportPhone and etc. ) Test passed on WIndows 7,8 wortkstations. Can be run via RMM or Powershell Run as Administrator commandline.
DownloadProblem title: Logon / Logoff script 
Problem description: Would like a script that keeps a log for the logins of users. And possible also failed logins. Including date and time + ip# 
Fix description: Script is reporting the following points: 1. all usernames logged in 2. date logged in 3. Users logon Id Tested on Windows 7 Workstation.
DownloadProblem title: Shutting Down the local or remote computer 
Problem description: Need a script in RMM that shutdown the local or remote computer. 
Fix description: PowerShell script shuts down the local or remote computer . Tested on Windows 7 and Server 2008. Can be run via RMM.
DownloadProblem title: Install a program and running in silent mode 
Problem description: The program is iScanOnline and it installs through a browser. i need to write a script for RMM remote max Thank you 
Fix description: Vbscript installs iScan Online (plugin) in silent mode. Tested on Windows 7. Note! __ This version of script can't be run in RMM. User need to set correct installation path.
DownloadProblem title: Monitor hard drive on Windows with smartmontools through RMM RM 
Problem description: I want to expand on the functionality of the SMART check in RMM and use smartmontools for Windows to alert when there is a significant change in the health of the drive. I've already got a vbscript to download the installation file and do a silent install. Now I need a good script for the 24x7 check. 
Fix description: This will just get smartmontools installed and set up to run. I haven't gotten around to figuring out a good way to actively monitor it with RMM, yet. Download the smartmontools 6.2 for Windows installer from here: http://www.netpower.fr/smartmontools Don't use the one on Sourceforge as the installer is built differently. Unzip the package so the script can download the executable directly. It will install and start the SmartD service. You should get a test email notification during the install and you might get emails when an error is detected by the SmartD service, but I haven't gotten one yet, so I'm not sure about that. Edit the script to contain your URL on line 24 (Download "URL" ...). Edit line 68 to have your proper email address (both from, -f and to, -t), SMTP authentication user and password, and SMTP server. The script will exit gracefully if smartmontools is already installed, so this script will not work to upgrade to a new version as-is. One parameter is needed which is the name of the executable to download and run. You could also just change line 4 to the filename if that's easier.
DownloadProblem title: Workstation Monitoring - Processor and Memory Load 
Problem description: I am looking for a script to be run in RMM that will report the CPU load and Memory Load and alert if over a certain %. I am figuring the script can check on available memory and alert if less than X % and also if the CPU load is over X % for total CPU available. The server clients have this but not the workstation. 
Fix description: This is new version of script for checking CPU load usage . Script runs via RMM and fails if CPU load usage greater than X%. Test Passed on the Windows 7 workstation.
DownloadProblem title: Getting Information Binary Files Used by an Application 
Problem description: Need a script that will return the name and product code of binary information used by the application. 
Fix description: Returns the name and product code of binary files (such as bitmaps, icons, executable files, and so on) used by a Windows Installer application. Tested on Windows 7 workstation and server 2008 R2. Script can be run via RMM.
DownloadProblem title: Reports the Universal Time Coordinate (UTC) time on a computer. 
Problem description: Is there a script for determining UTC Time (including Week In the Month, Quarter, Day Of the Week etc.) ? 
Fix description: Pshell script returns UTC Time Universal Time Coordinate (UTC) time on a computer . (Day, Day Of the Week is, Week In the Month etc.) Script Passed test on Windows 7 workstation and Server 2008 via RMM.
DownloadProblem title: Script To Check if Task in Windows Task Scheduler Has Run 
Problem description: Is it possible to make a script that will check if a or all tasks in Windows Task Scheduler have run? Thanks in advance! 
Fix description: This is a script I use, which only reports failures on jobs that have run within the past 24 hours, or are a long time running
DownloadProblem title: Workstation Monitoring - Processor and Memory Load 
Problem description: I am looking for a script to be run in RMM that will report the CPU load and Memory Load and alert if over a certain %. I am figuring the script can check on available memory and alert if less than X % and also if the CPU load is over X % for total CPU available. The server clients have this but not the workstation. 
Fix description: PowerShell script reports Memory Load . It runs in RMM and fails if Physical Memory load greater than X %. Test passed : Windows 7 workstation.
DownloadProblem title: Get the login name of a user of a remote computer? 
Problem description: Is there a script I can run to see who is logged in to a computer on my network? 
Fix description: Here you go this will show you when they logged in too.
DownloadProblem title: Time Zone Offset from Greenwich Mean Time 
Problem description: I think it can be very useful script for determining offset of the time zone in use on the specified computer from Greenwich Mean Time. 
Fix description: Small powershell script returns current time zone caption and determines the difference between the time zone in use on the specified computer and Greenwich Mean Time. It passed test on WIndows 7,8 and Server 2008 via RMM.
DownloadProblem title: Converting WMI Date-Time Values 
Problem description: Need to a VBscript or Powershell method(function) that will convert the Universal Time Coordinate (UTC) values used by WMI to standard date-time values. For Example : UTC value (such as 20011029113047.000000-480) to a standard date-time value (such as 10/29/200111:30:47 AM). 
Fix description: Vbscript converting the Universal Time Coordinate (UTC) values used by WMI to standard date-time values. Note! For instance UTC value is 20131202001507.000000+240. Test on windows 7 workstatin. Script can be run via RMM.
DownloadProblem title: Converting WMI Date-Time Values 
Problem description: Need to a VBscript or Powershell method(function) that will convert the Universal Time Coordinate (UTC) values used by WMI to standard date-time values. For Example : UTC value (such as 20011029113047.000000-480) to a standard date-time value (such as 10/29/200111:30:47 AM). 
Fix description: This function converts the UTC value (such as 20011029113047.000000-480) to a standard date-time value (such as 10/29/200111:30:47 AM). Runs on Windows 7 workstation.
DownloadProblem title: List of Classic COM Classes 
Problem description: Is there a script in RMM for retrieving information about all the "classic" COM classes installed on a computer ? 
Fix description: PowerShell small script returns information about all the "classic" COM classes installed on a computer via RMM RemmonteManagment . Test Passed : Windows 7,8 workstations Server 2008.
DownloadProblem title: List Component Categories 
Problem description: Need a script that will return information about the COM class component categories (COM classes that share common functionalities) found on a computer. 
Fix description: Script returns information about the COM class component categories found on a computer. Tested on Windows 7 workstation. Can be run via RMM.
DownloadProblem title: List of DCOM Applications 
Problem description: Is there a script in RMM for returns information about all the DCOM (distributed COM) applications installed on a computer. 
Fix description: PowerShell script retrieves information about all the Distributed COM applications installed on a computer. Script Passed Test on Windows 7 workstation and Server 2008 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.