Kaseya Scripts Available for All Cloud Services Depot Customers

Below is a list of Kaseya scripts provided by Kaseya Intl Ltd. and Cloud Services Depot, Inc. All administrators have access to the complete list of scripts below. Administrators can modify any script, create new scripts and share scripts between administrators within the same company.

Systems Management

Add Trusted Sites
This script checks to see if your company has been added as a trusted site. If not it runs a registry script on the machines to allow anything from the domain to run ActiveX. In this example, the site Google.com is added to the list of trusted sites.
Set Default Internet Explorer Page
Set Default Page on Internet Explorer.
Lock Workstation
The Lock Workstation Kaseya Script locks the machine with a Visual Basic script to execute the Windows Key + L function.
Send Message (If User Is Logged In)
If you need to perform system or network maintenance, use this script to send a message to all your users. With Kaseya, you can use the remote control tab to send a message; however, there is no way to send a message to users if they are not logged in. This script overcomes this limitation.
Change IP Settings
This script can change the IP settings on computers using a text file uploaded to the server and specified in the script (e.g. ipcomputers.txt) that contains a list of hostnames and new IP settings.
A Visual Basic script is uploaded to the remote system along with the text file and executed. The Visual Basic script searches the text file for a hostname matching the target computer and if found, changes the IP address on the system along with other settings (mask,gateway,dns1,dns2) specified in the text file. Configuring the IP settings to use DHCP is also possible by specifying "dhcp" instead of an IP address in the text file for affected PCs.
Block IE7 Automatic Delivery
This script can block automatic delivery of Internet Explorer 7 to machines in environments where Automatic Updates is enabled. By setting a single registry value IE7 will not show up as a high-priority update.
Un-Block IE7 Automatic Delivery
This script unblocks automatic delivery of Internet Explorer 7 to machines in environments where Automatic Updates is enabled. This script will not install Internet Explorer 7.
NETSTAT Report
This script executes the NETSTAT command and sends the output via email to the address(es) specified in the script.
Remove Users from Local Administrators Group
This script uploads and executes a Visual Basic script (removeusers.vbs) on the remote system that removes all members from the local Administrator group except for the Administrator account and Domain Administrators group. Removed accounts are logged in a text file (result.txt) and, the contents are imported into the Kaseya agent's script log on the server.
Checkdisk Script (CHKDSK)
This script is used to execute the CHKDSK utility on all fixed disk volumes of a remote machine. The script will upload and execute a Visual BasicScript (chkdsks.vbs) that will first run CHKDSK in read-only mode, documenting output. Based on constant-modifiable options in the Visual BasicS file, the Kaseya script will also attempt to fix disk problems (/f, /x, /r switches) if needed.
Volumes that cannot be fixed and require CHKDSK to run at system startup can or will be scheduled to be automatically checked at the next startup. A complete log of CHKDSK actions is returned to the Kaseya server via the "Get File" Kaseya script function.
Run Windows Script
This example Kaseya script demonstrates how to deploy and run a Windows Script Host (WSH) script on any machine. This example utilizes a JScript file to write a test error message to the Microsoft Windows Application Event Log.
Password Length
You can force Windows to reject passwords that do not meet a minimum password length. This is useful to prevent users from creating trivial passwords. This scripts adds a new REG_BINARY value of 'MinPwdLen', and sets the data to the minimum number of characters required for a password to be accepted. The minimum password length is configurable in the script and the default value is eight characters. Note: This does not affect existing passwords, only new or changed.
Remove Google Toolbar for Internet Explorer
This script removes the Google Toolbar for Internet Explorer from the target machine using a GUI-based scripting engine.
Remove Ask Jeeves Toolbar for Internet Explorer
This script removes the Ask Jeeves Toolbar for Internet Explorer from the target machine using a GUI-based scripting engine.
Remove Bearshare
This script removes the BearShare P2P (Peer-to-Peer) application from the target machine using a GUI-based scripting engine.
Remove Ebay Toolbar for Internet Explorer
This script uninstalls the Ebay Toolbar for Internet Explorer from the target machine using a GUI-based scripting engine.
File Search (MP3 Search)
This script searches all fixed drives for files with a given extension and logs the list of files, their path, file size and total size to a log file. The script can be configured to email the log file to an administrator or helpdesk and can optionally be configured to delete the specified type of file.
Install McAfee SiteAdvisor for Internet Explorer
This Kaseya script deploys the McAfee SiteAdvisor plugin for Internet Explorer.
Disable Windows XP Balloon Help
This Kaseya script disables the Balloon Help feature in Windows XP.
Retrieve Internet Explorer History Addresses
This script uploads and executes a Visual Basic script (iehistory2.vbs) on the remote system that uses NirSoft's Internet Explorer History View utility (iehv.exe) to save IE URL history addresses for all user profiles on the system into a text file (history.txt). The contents of the text file are then captured into a Kaseya variable and emailed to the address or addresses specified in script.
Force User Logoff
This script uses a small Visual Basic script ( forcelogoff.vbs) to trigger a forced user logoff on the remote system via the WMI Win32Shutdown method.
Windows XP Remote Desktop Status
This script reports the status of the Remote Desktop feature (enabled/disabled) on PCs using Windows XP and returns a list of users that have remote access privileges.
Disable RegEdit Function
This Kaseya script disables Registry Tools such as regedit and regedit32.
Windows Disk Cleanup
This Kaseya script executes the native application in Microsoft Windows to clean temp files, Internet Explorer cache files, check disk files, etc. This script runs in two parts: The first part is a Registry setting script making sure all the settings are properly configured and the second part executes the program using the registry settings configured in the first part.
Delete Temp Files
Deletes the Temp Files from windows updates and Kaseya files.
Flush DNS
This script executes the "ipconfig" command with the "/flushdns" switch in Microsoft Windows. Use this script when deploying new DNS servers or to manually flush the cache after you have been a victim of a cache poisoning attack.
Renew IP Address
This script executes the "ipconfig" command with "/renew" switch to renew the IP address on the target machine(s).
Windows Shutdown
This script uses the Shutdown.exe utility to shutdown a computer from a remote location or at a specific time.
Remote Wake Up
This script executes the "Wake on LAN" command from a machine that is connected to the same LAN as a machine sleeping or turned off. The BIOS on the target machine(s) must be set to accept Awake on LAN requests.
Defragment All Drives (XP/2003)
This script copies and executes a Visual Basic script (defragalldrives.vbs) on the target machine(s) and then executes the command-line defragmenter (defrag.exe) included with Windows XP/2003 systems. All fixed drives on a local computer can be set for analysis and correction.
The script will analyze each fixed drive and perform the defrag process only if needed. All actions, results and possible errors are recorded in a text file (defrag-result.txt) that is returned back to the Kaseya server via Get File command. The script can also be easily modified to write results to the script log or have results be sent in an email.
Folder Check - Empty / Not Empty
This Kaseya script executes a VBScript on the target machine to check a specific folder (provided in STEP 3) for files. The result is returned as a Custom Event Log entry (that Kaseya can detect by setting the Kaseya Alert feature) and is saved to the script log of the Kaseya agent. Custom Event Log entries can be created using the included VBScript file. Default custom Event Log entries are:
Type: INFORMATION, ID: 910 - Folder is empty
Type: WARNING, ID: 911 - Folder contains files
Power Management Configuration - Always On
This Kaseya script utilizes a power management utility (POWERCFG.EXE) included with Windows XP-SP2/2003 systems and a custom saved power profile file (ALWAYSON.POW) that disables the power scheme settings. (e.g. turn off hard disks, set standby/hibernate to Never, etc.). The turn off monitor feature is set to 20min by default. The power scheme setting status is returned to the Kaseya server and is accessible via Get Files function within the Kaseya Managed Services application.
Network Interface Information
This Kaseya script executes the IPCONFIG /ALL command on a remote system and saves the network settings information back to the Kaseya server. This information is accessible to administrators in the Kaseya Managed Services application via Scripts Tab -> Get File -> Kaseya agent name function and then by opening the ipconfig-status.txt file.
Disable Office SP3 Auto-Block
The MS Office 2003 SP3 update blocks CorelDraw (.cdr) files and certain legacy MS Office files. This script unblocks them.
Disable WSUS
This script configures workstations to not download automatic updates from a server using WSUS as according to Microsoft KB article 328010.
Set Word/Excel/Powerpoint 2007 save format default to .doc/.xls/.ppt
These scripts set Word, Excel, and Powerpoint 2007 default save types to Office 97-2003-compatible file formats.
File format compatibility pack for Office 2007
This script pushes and silently installs a Microsoft update onto the machine that allows Office 2003 users to open Office 2007 files.
Flash Silent Install
This script silently deploys the latest version of the Adobe Flash plugin for IE, and for Firefox, if present.
Adobe Acrobat Reader Install
This script performs a silent, unattended installation Adobe Acrobat Reader on the target machine.
Mozilla Firefox Install
This script performs a silent, unattended installation Mozilla Firefox on the target machine.
Sun Java Install
This script performs an unattended installation of the Java browser add-on on the target machine.
Apple Quicktime Install
This script performs a silent, unattended installation of Apple Quicktime player on the target machine.

Server Management

Set Time Server
This Kaseya script sets the windows clock on the target machine(s) to retrieve the local time from time.windows.com
File/Folder Object Permissions
This script executes the CACLS utility to obtain the permissions of the file or folder specified in the script and then transfers the results back to the Kaseya server in a Permissions.txt file.
Terminal Services Port Setting
This script changes the Terminal Services RDP port on the target machine(s) from 3389 to 7575, or to any port specified in the script.
Stop Services - Before Backup
This script will stop services specified in the script on the target machine(s) before a backup process is executed. This script is not always needed; however it is recommended that you stop/start services like Exchange and SQL before/after a backup.
Start Services - After Backup
This script will restart the services specified in the script on the target machine(s) after a backup process is complete.
Microsoft Exchange - Check Database Size Script
The Exchange Check Database Size script can be used to monitor Exchange database growth and is especially useful for monitoring pre-SP2 Exchange Standard systems that have a 16GB database limit. This script executes a VBScript on a target system that will determine the sizes of all Exchange databases (if any), compare sizes against configured thresholds, and output status results to the Windows Event Log on the target system and the agent Script Log on the target system. The Kaseya software can be configured to monitor the Window Event Logs for the custom script entries or the Script Log can be manually reviewed by administrators.
Microsoft Exchange - Exchange Mailbox Size
This script checks the individual mailbox sizes on Microsoft Exchange 2003 servers. This script helps administrators to determine which users own the largest mailboxes.
List Active Directory User Accounts
This script uploads and executes a Visual Basic script (aduserinfo.vbs) on the target machine(s) and provides a list of Active Directory user accounts and their associated email addresses into a text file (accounts.txt). The contents of the file are retrieved by the server and emailed to the address(es) specified in the script.
Rename Domain Computers
This script renames the target machine(s) using a text file uploaded to the Kaseya server. The text file contains a list of old and new computer names as comma-separated pairs. The script searches the text file for a name matching the target machine(s) and if found, renames the target machine(s) to the new name and reboots the remote computer when done.
DHCP Server Info
This script will detect if the target Windows DHCP Server is installed and then captures the configuration of the server in the Kaseya Script Log.
Policy Update
This script reloads the Group Policies on Windows 2000 and XP machines.

Network Management

Ping IP Address, Port or Host
This script will ping the IP Address, port or host to see if the destination can be reached without packet loss. If there is packet loss, the script will send an e-mail with the results of the ping. If there is no packet loss, it will log an All OK result in the Kaseya Script Log.
Execute SNMPWalk
This script will execute a SNMPWalk command on the MIB 2 tables: etherStat and ifEntry. The user can alter the deviceipaddress, agentTempDir and communityname variables to get the basic interface information on a SNMP Device; aiding them in creation or modification of SNMP Monitor sets.

Kaseya Agent Customization

Custom Kaseya Agents - Hide Kaseya Agent Software
This script removes the Kaseya Agent folder from the Windows Start Menu and hides the System Tray icon by disabling the Kaseya Agent Menu. Use this script on systems to prevent anyone from uninstalling, exiting or stopping the Kaseya agent program.
Custom Kaseya Agents - Custom System Tray Icon
This script allows Cloud Services Depot customers to change the default agent tray icon on target machine(s). You will need to upload your custom icons files (pixel depth up to 32x32) to the Kaseya server and select those files in steps 2-5 of the script.
Custom Kaseya Agents - Service Name
This script will rename the Kaseya Agent Service to a custom name to rebrand the Kaseya application for Cloud Services Depot customers. This script will also modify the description of the service as needed.
Custom Kaseya Agents - Add/Remove Info
This script can be used to change the default Kaseya Agent name and icon in the Add/Remove Programs list.
Force Check-in
This script forces the Kaseya Agent to check-in the with the Kaseya server to verify if a target machine is online or not.
Reset Audit Cache
This script deletes the cached audit results file saved by the Kaseya Agent. Use this script to reset all application results from an audit.
Reboot
This script simply reboots the target machine(s).

Anti-Virus and Anti-Spyware Management

Check All Virus Definitions
This script checks all versions of virus definitions from Symantec, McAfee and Trend Micro software. This script is typically used with new customers to determine which anti-virus programs are installed and find those that require updates.
Spybot Search & Destroy
This script will check the target machine(s) to see if the Spybot Search & Destroy 1.6 program exists. If it does not, the program will be silently installed. The script will then execute the Spybot Search and Destroy program with the following configuration: run auto-update, auto-check, auto-fix and auto-immunize.
McAfee Stinger Anti-Virus Utility
This script executes the McAfee Stinger utility tool and removes any viruses on the target machine(s). The script will execute the McAfee Stinger program and will save the results to a file on the Kaseya server. Optionally, the script can be configured to run silently and the results can be written to the Kaseya Script Log for administrator or helpdesk reporting.
Check McAfee Enterprise Definition Files
This script checks the McAfee VirusScan Enterprise software to verify the target machine(s) are using the latest McAfee definition files.
Trend - Check OfficeScan Definition Files
This script checks the Trend OfficeScan software definitions and reports their status in the Kaseya script log.
Symantec - Install Symantec Antivirus Software
This script will checks to see if Symantec Antivirus ( version 6 or greater) is installed on the target machine(s). If not, the script can optionally install the Symantec Antivirus program from the Kaseya server using the network path specified in the script.
Symantec - Set Network Configuration
This script will check to see if Symantec Network Scan is enabled and if so, the script will disable it. If any servers contain Sage MAS90, MAS200 or MAS500 flat file databases, the Symantec Real-Time scanner will cause network performance issues.
Symantec - Check Symantec Virus Definitions
This script checks the target machine(s) for the Symantec Anti-Virus program and if present, reports the version of the definition file. Example of how Symantec reports: 2005 (year) 06 (Day) 01 (month).21 (version) 20050601.21
Conficker Removal Tools
These three scripts silently run Conficker worm removal tools from Eset, F-Tools, and Kapersky.