N-able RMM: Community Scripts - Page Nine

Last Modified

Tue Jan 29 14:05 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

Solution


Fix It Script List
 

Fix It Script List
 
DownloadProblem title: View Microsoft Windows OS Product Key 
Problem description: I need to view Windows product key . Is there a script to do this ? I think this can be very useful script in RMM. 
Fix description: A script I have been working on to provide OS install keys plus a little more info and the office install keys for Office 2010 and 2013. Hopefully you will find it useful.
DownloadProblem title: defraggler scripts 
Problem description: I am looking for 2 scripts for defraggler (from piriform) 1 to to defrag the c-drive. and another one for the e-drive. Thanks in advance. 
Fix description: This script for defragment Hard Drives. This will only run on Windows 2003 and XP systems and saves the results to the log file.
DownloadProblem title: Take screenshot of current user's session 
Problem description: I would like to be able to take a screenshot of the user's session by check or task. Any idears? 
Fix description: This version of script take a screenshot of the entire desktop and save as .png. Tested on windows 7 workstation.
DownloadProblem title: A VBS or Bat Script to Make Users LogOff and Then Delete Profiles of Remote Users 
Problem description: We are working in a call center taking care of a lot of Remote Users (aproximately 10000 people). These people work with Xp and Win7 PCs. And, **we often need to delete these remote user profiles with regs**. We use Remote Desktop Manager (RDM) to delete their profiles but this process really takes a very long time. So we need a script to delete remote user profiles and regs after making them logged off (especially with a message they can see for this deletition process). Because When They are logged in/on we can not delete totaly their profiles and regs. We detected that, After deleting the User Profiles via RDM, there are some regs with .bak in Regedit. And then, Remote User logs in/on with temporary profile. At this time, we need to delete this reg file via RDM after all process. :( **In SUM: We need a script to delete remote user profiles and regs after making them logged off (especially with a warning message USERS can see before this deletition process)** For ex (win7) There are Remote Users in 10.110.9.101: C:\Users\23586589854 C:\Users\15469875655 C:\Users\68974521265 (WinXP) There are Remote Users in 10.110.9.101 C:\Documents and Settings\23586589854 C:\Documents and Settings\15469875655 C:\Documents and Settings\68974521265 :( Is there any chance to find this script :( 
Fix description: This script reads user's name of list.txt file and then deletes all users. Maybe it will be useful for you.
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: You can RESTART a Remote PC from a Domain via this script. You can see the Ping Status before and after restarting the Remote PC. Only you shold enter the Host Name and the script will show you the Restarted PC. I know this can be seen very simple but I really tried so much :) Get this code, copy and past a txt file and save as .bat file. I hope it will be usefull for you Serdar UZUN ------------------------ twitter.com/serdaruzun guide08@gmail.com google.com/+SerdarUZUN/about
DownloadProblem title: Script to change the My Computer to the name of the computer? 
Problem description: I like my computers to have the name of the computer instead of "My Computer" I know how to do this manually but if there was a script that automated this, that would be awesome! 
Fix description: This VBScript will change the MY Computer name to local computer name. It will run in MAX RemoteManagement.
DownloadProblem title: Change 24x7 interval for servers and workstations 
Problem description: When reviewing existing installs the 24x7 check interval differs. It would be nice to change all/some devices their 24x7 check interval. For servers from every 15 minutes to every 5 minutes; And for workstation from every 60 minutes to every 30 minutes. Needing to changing it manually per device is extremely labour-intensive. Scripting this should be possible? Changing the **settings.ini** located at C:\Program Files (x86)\Advanced Monitoring Agent (or GP) [247CHECK] INTERVAL=xx Something like: IF interval=5 DO nothing; IF interval=15 CHANGE TO 5; IF interval=30 DO nothing; IF interval=60 CHANGE TO 30. Could anyone help creating this script? Thanks so much! Regards, Wybren 
Fix description: Powershell script automatically changes "24x7 checks"'s interval for : Servers: 15 change to 5. Workstations: 60 change to 30. Script can be run via RMM. And passed test on Windows 7,8 Workstations and Servers 2008,2012.
DownloadProblem title: Windows Action Center Reporting 
Problem description: Script to run in RMM RMM Dashboard that could display the current messages alerts in the Windows Action Center. 
Fix description: Here's WMI script to get information about antivirus, which is displayed in the window action center. Maybe it will be useful for you. Can be run via RMM.
DownloadProblem title: RMM Script - Check for directory size increase Linux 
Problem description: I am looking for a script check for RMM for our centos server. What we have are 2 cameras on a remote site that FTP an image every 5 mins back to base. I have already setup a ping check to both cameras external IP addresses to check they are up but now I need a check to see if they are actually sending data. Any help would be great. Tom 
Fix description: Bahs script does check for directory size increase Linux. Must be input correct dirname and log file name in script.
DownloadProblem title: Would like a script to pull out all the startup items from MSCONFIG 
Problem description: I have a couple of scripts that can pull startup items from the registry but I can't seem to find any way of pulling out a list of startup items from msconfig as well... Anyone any ideas how to do this? 
Fix description: My Scripting guy came back from holiday and threw this together from various ones we found, hopefully will help someone else.
DownloadProblem title: RMM Script to rename registry key, modify the string value and rename an exe in program files 
Problem description: I have the MSP version of Malwarebytes. When it installs it creates the registry key (HKLM\Software\Microsoft\Windows\CurrentVerion|App Path\) mbam-msp,exe, folder, data points to mbap-msp.exe in program files(86). I need a script that can rename the registry file to mbam.exe, then edit the string value from C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam-mps.exe to C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam.exe and then rename the exe in program files. 
Fix description: This script renamed registry key (HKLM\Software\Microsoft\Windows\CurrentVerion\App Path\mbam-msp.exe) and rename exe file (C:\Program Files (x86)\Malwarebytes Anti-Malware\mbam-mps.exe) name in program file. Can be run via RMM RMM MAX. Note! Run via Administrator.
DownloadProblem title: Disable/Enable removable devices 
Problem description: I need a script to disable/enable all removable devices (usb, memory card slot, dvd) Thanks 
Fix description: PowerShell script to enable/disable CD/DVD Rom and USB drive on WIndows (XP/VISTA/7/8). NOTE : Script need to run via Powershell Run as Administrator.
DownloadProblem title: Need a script to get office keys 
Problem description: Hi, I was wondering if anyone could assist me in writing a script to retrieve microsoft office keys. We would like to be able to go into our RMM dashboard and simply run a script to be able to view a workstations office key. Any help would be appreciated! 
Fix description: Vbscript for getting Microsoft Office Produck (license key) key installed on a local computer. Script can be run via RMM. Tested on Windows XP(32 bit), Windows 7 (32 bit).
DownloadProblem title: Script to detect current user and determine if that user is a local admin or not 
Problem description: We would like a script which we can run as a 24x7 check which detects the user currently logged in and then determine if that user is a member of the local administrators group or not. If he/she is then the check will fail. Otherwise it will pass. I've tried and failed miserably. Thanks in advance. 
Fix description: Not of my own creation but hopefully should do the job.
DownloadProblem title: Script to detect current user and determine if that user is a local admin or not 
Problem description: We would like a script which we can run as a 24x7 check which detects the user currently logged in and then determine if that user is a member of the local administrators group or not. If he/she is then the check will fail. Otherwise it will pass. I've tried and failed miserably. Thanks in advance. 
Fix description: Powershell script to getting name of currently logged user and checking if the user is amember of local administration group or not. Script passed on Windows 7 via RMM dashboard.
DownloadProblem title: Disabling ERS service 
Problem description: I am looking for a way to disable the same service on multiple computers at a site remotely? I know the service name and really do not want to have to kill it manually on each machine. I am new to scripting and am hoping someone can help me. 
Fix description: I put this quick batch file together for you. Once added to RMM you can easily stop, start & set the startup type of a service. You can use this to just stop and start services or also set the startup type. You will need to use the service name and not the service description. The service description is what you see by default in services.msc. Here is an example of the parameters for the Print Spooler service. Stop Spooler Disabled Start Spooler Auto Start Spooler Demand Stop Spooler Start Spooler
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 VBScript will get the following information from a local computer: PC Name Log in name OS Memory Model CPU This script will run in MAX RemoteManagement.
DownloadProblem title: Would like a script to pull out all the startup items from MSCONFIG 
Problem description: I have a couple of scripts that can pull startup items from the registry but I can't seem to find any way of pulling out a list of startup items from msconfig as well... Anyone any ideas how to do this? 
Fix description: Powershell script pulls out all the disabling StartUp items from MSCONFIG using by registry keys of MSConfig. Test passed on Windows 7 via RMM.
DownloadProblem title: Startup Applications List 
Problem description: I'm looking for a script compatible with MAX RMM that when run will output a list of current startup applications. I hope I didn't overlook it in all the current scripts already here... Thanks! 
Fix description: Didn't notice this problem before I posted mine but here is what we ended up with.
DownloadProblem title: Script to delete .tvc files from downloads 
Problem description: Hi Guys, I'm working on creating a script that I can run on a weekly / monthly basis that will search the downloads folder of our admin PC and remove all .tvc files that are downloaded and saved in order to remotely control a clients device... Anyone done this or have any ideas on the best way of approaching this? Regards, Luke 
Fix description: Managed to get this put together hope it helps someone else.
DownloadProblem title: Need a script to get office keys 
Problem description: Hi, I was wondering if anyone could assist me in writing a script to retrieve microsoft office keys. We would like to be able to go into our RMM dashboard and simply run a script to be able to view a workstations office key. Any help would be appreciated! 
Fix description: I use the below to get Windows and Office keys plus a little extra info.. Should be able to chop out the bits you need if you don't want it all. (Works for Office 2013 as well.)
DownloadProblem title: Need to see what the mapped drives are 
Problem description: Just looking for a script that will simply run 'net use' and pass back the output. 
Fix description: This script returns list of mapped drives and saves in text file. Tested on windows server 2008.
DownloadProblem title: Need to see what the mapped drives are 
Problem description: Just looking for a script that will simply run 'net use' and pass back the output. 
Fix description: This script returns list of mapped drives and saves in text file. Script can be run via RMM.
DownloadProblem title: Check for Directory 
Problem description: Hello, I need a RMM script to check if a path exists. It should show throw an error because it will be a script check if the folder doesn't exist for that version of windows. The paths to check are: c:\ProgramData\choc on Vista/7/8/8.1 C:\Documents and Settings\All Users\Application Data\choc on XP 
Fix description: This script checks if exist path
DownloadProblem title: Looking for a Script to determine Computers Hardware 
Problem description: I've found many scripts that find the processor, or the amount of RAM a computer has, but I'm looking for a script that could find all the hardware information. It could either pull the data from the "Hardware" tab of RMMmax, or a script that will find the information, and put it into a text file. 
Fix description: Powershell script. Copied verbatim from Spiceworks. Fully attributed to: http://community.spiceworks.com/scripts/show/1831-get-computer-system-and-hardware-information
DownloadProblem title: Monitor Internet Outage 
Problem description: Would like a script that would send an email alert when the internet goes down on a server. Thank you. 
Fix description: This script to test your internet connection and monitor while it is down. When the connection is back up, a text notification will show up.
DownloadProblem title: Uninstalling N-Able? 
Problem description: Anyone have a working script to uninstall N-Able? 
Fix description: Using the msiexec.exe tool in Windows 7
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 VBScript that will get a bunch of OS details including the following: OS name type service pack version number of users serial number number of processors free virtual memory free physical memory This script will run in MAX RemoteManagement.
DownloadProblem title: Make an Internet Explorer Setting script 
Problem description: I need some help! I need a script that will change a few settings in IE10. Please help I have been looking all around and finding bits an pieces here and there. When I try to run them i get errors.I need a script that will change the settings below. General Tab: -Tabs (Under tabs) 1) Select all check boxes in tabbed browsing - Settings (Under Browsing History) 1) Increase the disk space size for browsing history to 1024 Advanced Tab: - Uncheck "reuse windows for launching shortcuts" ________ Also is possible can add a proxy server of 192.168.100.254 and add some Exceptions under the advanced tab. Thank you all very much in advanced 
Fix description: Enable tabbed browsing for Internet Explorer and when a popup is encountered Let IE decide how pop-ups should open. And then changes the size of the Temporary Internet Files Folder. Tested on Windows 7 workstations.
DownloadProblem title: Hacker Check Failed 
Problem description: Hi Everyone On a number of occassions we have had the hacker check failed and when our clients see this they always ask the username that is being tried. Therefore I would like to see if we can get at the information automatically so on the hacker check fail it would run a script to find out any relevant information ideally the username that is being tried and maybe an IP address it is coming from so we could possibly block at the firewall level. Any ideas ? Thanks 
Fix description: This PowerShell script is a work in progress, but I think it may still prove useful even in its current state. I run this as an automated task on client servers triggered by a failed hacker check. Sometimes it seems to miss the trigger, but can be run manually from the dashboard. [UPDATE Below] Here's a rundown of the actions it performs: 1. Check the target machine for a C:\Temp directory, if there's not one, create it. 2. Checks if the .NET Framework 3.5 is installed. (Resource-optimized functions are used if so, and if not the script falls back to older PowerShell functions.) 3. Parses the event log for failed logins within the past 12 hours (this number is editable with a simple substitution in the script file). 4. Captures Event Time, Hostname of the target machine, Username of failed attempt, Domain of failed attempt, IP Address of failed attempt origin, IP Port of failed attempt. 5. Writes these details for all failure logs of previous 12 hours into a CSV file. Filename reflects the Company-Server-Date of the system it is run on for easy identification later. 6. Uploads the file to your FTP server (enter details into script) 7. Cleans up the file from C:\Temp. Alternately, you could edit the script to simply save the file to a local directory, or simply comment out the line that removes the file at the end of the script to leave it in the Temp directory. Further work on this script is underway. I will try to keep this Fix updated as I'm able to add functionality. My goal is to build in an API call back to the dashboard to clear the Hacker Check on the selected device. At this point, I must verify the uploaded file exists in my FTP folder and then clear the check manually. I should also point out my discovery that many of our client servers did not have PowerShell Remote Signed access enabled, which meant the script failed entirely on those devices. I have a separate fix which turns this feature on from a batch file. If anyone encounters this issue I would be happy to post that fix in response to a separate question so it can be more easily referenced. UPDATE: I have amended the code below to add the functionality of automatically clearing each Hacker Check in the dashboard at the end of the script via a series of API calls if the script has run successfully. Cheers, Josef

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.