• No results found

LabTech Ignite Scripts

N/A
N/A
Protected

Academic year: 2021

Share "LabTech Ignite Scripts"

Copied!
35
0
0

Loading.... (view fulltext now)

Full text

(1)

LabTech Ignite Scripts

DEFAULT LABTECH IGNITE™ SCRIPTS ... 1

Overview ... 1

LabTech Default Scripts ... 1

Document Revision History ... 34

Overview

The scripts on the following pages are the default scripts in the 2012 LabTech Ignite™ installation.

LabTech Default Scripts

Script Category Description

Actions

Set as Master Sets the computer that this script is run on as a Master. This script can also be used on a group to set an entire group of computers as Masters. Start Offline LT Agent Services This script will restart an Offline Agent. It is only

designed to run on a Windows OS and be run against a machine that is currently online. Wake on LAN This script allows you to schedule a Wake on

LAN. Anti-Spyware

SpyBot Search Destroy

SpyBot Uninstall Uninstalls Spybot Search and Destroy silently with no restart. A reboot is required for the software to stop showing up in the software list on the computer.

SpyBotResults This checks to see if fixes.txt exists and then uploads them to the script log for reporting. This script is designed to be called from another script and should not be run directly. SpyBotScan Runs Spybot /taskbarhide /autoupdate

/autocheck /autofix /autoclose /immunize. You must put the spybotsd162.exe file in the Transfer\Apps directory. This script returns results to the Script Log in the History on a computer

Anti-Virus

Manual AV Scan This script will issue a scan command to run a manual AV scan on a computer, location, client or group. This process calls the manual ESET or AVG scan scripts if those AV apps are installed else, it uses the built in LT method for updating and is dependent on the AV setup located under Dashboard > Config. If the data in the AV table is incorrect the process will not be able to manually scan the system for virus data. Update Virus Definitions This script will issue an update command to

(2)

uses the built in LabTech method for updating and is dependent on the AV setup located under Dashboard > Config. If the data in the AV table is incorrect, the process will not be able to update the definitions.

AVG

AVG 2011 Install This script will install AVG 2011. The first thing it does is grab the AVG install key from the extra data field on the Info tab of the Client. If this field is missing it will log a message, create a ticket, and exit the script. After the extra data field data has been collected it will check the database to see if the agent computer has an AV reported to be installed. If there is an AV NOT found or the AV reported is AVG 9.0 then the script will add the detection information to the database. Next the script will delete any AVGsetup file and download the new install file to ensure the latest install file is being used. The script then creates a configuration file for the installer. Then the installer is run to install AVG 2011. Finally the agent resends its config, software, and system information to the server.

AVG 2012 Install This script will install AVG 2012. The first thing it does is grab the AVG install key from the extra data field on the Info tab of the Client. If this field is missing it will log a message, create a ticket, and exit the script. After the extra data field data has been collected it will check the database to see if the agent computer has an AV reported to be installed. If there is an AV NOT found then the script will add the detection information to the database. Next the script will delete any AVGsetup file and download the new install file to ensure the latest install file is being used. The script then creates a configuration file for the installer. Then the installer is run to install AVG 2012. Finally the agent resends its config, software, and system information to the server. AVG 9.0 Definition Update This script will initiate an AVG virus def update.

For complete details, see the notes in the script. AVG 9.0 Install This script checks for AVG or other AV installed

and if AV not present and installs AVG. For complete details, see the notes in the script. AVG License Changer This script updates the AVG license. You MUST

enter your new license key for line 1 in the extra data field on the Client Info tab, in the AV License Key field, for this work properly! AVG Scan & Clean This script sets an environment variable to

create a batch file and then runs the batch file. The purpose is to capture the return code of the scan. Then the script will create a log message and/or ticket based on the results of the scan. AVG9 Uninstaller This script requires avgsetup and

avguninstallsetup.ini to be located in

L:\transfer\Software\AVG\avgdeployment\avgset up.exe

(3)

McAfee Stinger

McAfee Stinger This script will run and log the results from the McAfee Stinger AntiVirus Scan. /ADL /LOG /SILENT

GOTO http://vil.nai.com/vil/stinger/default.aspx and change the ELSE line 2 to point to the current Stinger URL. This URL was last updated in the script on 1/18/2012 and was current as of that day.

This script returns results to the Script Log in the History on a computer.

McAfee Stinger Results This script looks to see if Stinger is done and reads its results.

This script is not designed to be run by itself but to be called by the McAfee Stinger Script. This script returns results to the Script Log in the History on a computer.

MSSecurityEssentials

Get Security Essential Settings Loads the extra data field settings for MS Security Essentials.

Install MS Security Essentials Installs MS Security Essentials, updates it, and then calls the configuration script ‘Set Security Essentials Config’.

Set Security Essentials Config Calls the script ‘Get Security Essential Settings’ to get the settings and configures the settings for Security Essentials.

Uninstall MS Security Essentials Uninstalls the MS Security Essentials. NOD32

ESET File Security for Servers Install This script will check for an existing AV, and if not detected will install ESET. The

AV_Username / AV_Password &

AV_SERVER_FQDN need to be set in the Client > Info tab.

This script will install 32 bit or 64 bit. The install file needs to be located in

/Labtech/Transfer/Software/ESET/eavbe_nt32_e nu.msi

ESET Install This script will check for an existing AV, and if not detected will install ESET. The

AV_Username / AV_Password &

AV_SERVER_FQDN need to be set in the Client > Info tab. This script will install 32 bit or 64 bit. ESET Manual Scan and Clean Scans using ESET with auto clean. Parses

output using regex and creates ticket if virus detected.

ESET Uninstall This script will uninstall ESET, if installed. Install ESET MSP Installs the ESET MSP version.

Trend Virus Cleanup

Damage Cleanup Engine Runs the Trend Damage Cleanup utility on the remote machine.

(4)

Sysclean Runs Sysclean on the target machine and will auto clean all viruses from machine. Downloads the definition directly from Trend. You will have to change step 16 if the definition file is updated by Trend to download the latest pattern file. Vipre

LTVipre Agent Install The extra data field AV SERVER FQDN needs to be populated on the Client > Info tab. The agent will be set to the Default Policy. If you have child policies you will need to move the agent to the appropriate policy.

Autofix Actions Ticket Consolidation

Monitor Agent Out of Date Creates a ticket and appends all out of date systems as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Critical Blacklist Events Creates a ticket and appends all Critical Blacklist Events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Disk Blacklist Events – Informational Creates a ticket and appends all Disk

Informational Blacklist Events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Disk Blacklist Events – Warnings and Errors

Creates a ticket and appends all Disk Blacklist Events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Drive Errors and Raid Failures Creates a ticket and appends all Raid Blacklist Events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Exchange Server Creates a ticket and adds a comment for each Exchange Server Blacklist event detected. Will update a new or opened ticket, if ticket is closed it will open a new one.

Monitor Failed Logins* Creates a ticket and appends all login attempts as a comment to the ticket. Will update a new or opened ticket. If ticket is closed, it will open a new one.

Monitor Failed Patch Installs Creates a ticket and appends all Failed Patches as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor High Priority Blacklist Events Creates a ticket and appends all High Priority Blacklist Events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Missing Critical Patches Creates a ticket and appends all missing patches as a comment to the ticket. Will only update a new or opened ticket. If the ticket is

(5)

closed, it will open a new one.

Monitor New Computer Detected Creates a ticket and appends all newly detected systems as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor New Unapproved Patches Creates a ticket and appends all New

Unapproved Patches as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one. Monitor Patches Installed Creates a ticket and appends all patches

installed in the last 24 hours as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Smart Drive Failure Creates a ticket and appends all smart drive failures as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor SW Install Creates a ticket and appends all installed apps as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor SW Uninstall Creates a ticket and appends all uninstalled apps as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Symantec Backup Exec Events* Creates a ticket and appends all Symantec Backup Exec events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Symantec End Point Security Events* Creates a ticket and appends all Symantec End Point Security events as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one. Monitor Unclassified Apps Creates a ticket and appends all Unclassified

Apps as a comment to the ticket. Will only update a new or opened ticket. If the ticket is closed, it will open a new one.

Monitor Defragment Drive This script will create a ticket and append the results of the script to this ticket. If the ticket still exists when this script is run again it will append information to this ticket. If the script runs and is a success the ticket will be closed. The script will defragment the drive on this computer if it is not in the ‘Disable Defragmentation’ group or the ‘Disable Autofix’ group. After running

defragment, the script will retest the drive and finish the ticket if it has been fixed.

Monitor Drive Free Space This script will create a ticket and append the results of the script to the ticket. If the ticket still exists when this script is run again, it will append information to this ticket. If the script runs and is a success, the ticket will be closed. The script

(6)

will run the ‘Disk Cleanup’ script.

Monitor Disk Cleanup This script will create a ticket and append the results of the script to this ticket. If the ticket still exists when this script is run again it will append information to this ticket. If the script runs and is a success the ticket will be closed. The script will run the Disk Cleanup script on this computer if it is not in the ‘Disable Disk Cleanup’ group. After running Disk Cleanup the script will retest the drive and finish the ticket if it has been fixed. Monitor Empty Patch Window Attempts to fix Windows Update, which may be

messed up or out of date. Per:

http://support.microsoft.com/kb/971058. Monitor Fix Appinit This script will fix an Appinit DLL that is defined

in the registry and will delete it.

Monitor Fix DCDIAG This script will push down a copy of dcdiag to the server if missing, and re-run dcdiag with verbose output attaching the result to the ticket. Monitor Fix Shell This script will fix the Windows Shell Registry

and set it back to Explorer.exe

HKEY_LOCAL_MACHINE\SOFTWARE\Microso ft\Windows NT\CurrentVersion\Winlogon\Shell. Monitor Fix System This script will fix a defined system registry

value.

HKEY_LOCAL_MACHINE\SOFTWARE\Microso ft\Windows NT\CurrentVersion\Winlogon\System Monitor Fix Userinit This script will fix a UserInit Windows registry

entry that is set to something else. %windir%\system32\userinit.exe,

HKEY_LOCAL_MACHINE\SOFTWARE\Microso ft\Windows

NT\CurrentVersion\Winlogon\UserInit

Monitor Kill Bad Process This script will kill a process that was indicated to be bad from the Bad Process Monitor. Monitor Network Troubleshooting This script will create a ticket with some network

troubleshooting information.

Monitor Offline Agent* The ‘Monitor Offline Agent’ script ensures the agent is actually down or if an entire site is down. If so, the script will try to remediate the issue. If it cannot, then the script executes the alert template that has been specified in the Properties. The properties are automatically created the first time the script runs with the following values.

 _sysOfflineAgentEmailAddress – default value,'[email protected]’. Optional email address that can be used to notify another party other than what is set in the alert template.

 _sysOfflineAgentMonitorID – default value,'490' – ID of monitor that is calling the script (LT – Offline Servers). You can view the monitor ID by double-clicking on a monitor and the monitor ID will appear in

(7)

parentheses next to the monitor name.

 _sysOfflineAgentAlertTemplate – default value,'32' – ID of alert template that is executed when offline issue cannot be remediated. You can view the alert template ID in Dashboard > Management > Alert Templates.

 _sysOfflineAgentMonitorName – default value,'LT - Offline Servers' – Name of the monitor that is calling the script.

If you do not want to use the default values (e.g., optional email address), then it is recommended that you add the properties before the first time the script runs. However, you can change the properties at any time.

Monitor Prompt User to Reboot This script asks the user to restart the computer and if the user says no then it will reschedule itself for 60 mins later. This script will continuously ask the user to restart until the computer restarts and the flag is reset. Monitor Reboot Computer This script will reboot a computer. Used to

restart a computer that installed updates and needs a restart.

Monitor Restart Service The Monitor Restart Service script is intended to be called by the Services Not Running monitor. When run, it will attempt to restart the failed service no more than three times before generating an alert and creating a ticket. Monitor Server Backup Creates a ticket and adds a comment for each

failed backup detected. Will update a new or opened ticket; otherwise, if ticket is closed it will open a new one.

Monitor Temp File Cleanup This script will create a ticket and append the results of the script to this ticket. If the ticket still exists when this script is run again it will append information to this ticket. If the script runs and is a success the ticket will be closed. The script will run the Disk Cleanup script on this computer if it is not in the ‘Disable Disk Cleanup’ group. After running Disk Cleanup, the script will retest the drive and finish the ticket if it has been fixed. Backup and Recovery

Acronis

Install Acronis MSP Edition This script will install Acronis MSP Edition. Uninstall Acronis MSP OEM This script will uninstall Acronis MSP OEM and

all related files. AppAssure

Install AppAssure This script will install Appassure Backup software. The license file needs to be put into the LTShare into the

Transfer\Software\AppAssure folder on the server.

(8)

Install CA ARCserve D2D This script will install CA ARCserve D2D Backup software using the credentials specified from the Location settings on the Deployment & Defaults tab, Login to use for Administrator Access field. Uninstall CA ARCserve D2D Uninstall CA ARCServe D2D.

Router Config

Backup Router Configs Called from "Get Router DeviceID" script: This script is an example of how to backup router configuration files of a Cisco router. Following lines may need to be changed for your particular setup: 13, 18, 23, 28, 38, 43.

Get Router Device ID Gets the router's device ID to pass to the Backup Router Configs script.

Setup LTBackup

Activate LT Backup Activates Shadow Protect for both desktop and server versions by using an extra data field on the client as the license key.

Activate LT Backup MSP This script will activate Shadow Protect MSP by using activation keys retrieved from the productkeys database and the MspName value from the Globals and Parameters tab of this script. You must change the MspName value on the Globals and Parameters tab of this script with your Company's information before running the script. Single-click on the MspName value, enter your company name, click the Save button beside the field, then click the Save button at the bottom of the script.

Activate Shadow Protect 4.0 Server This script will activate Shadow Protect by using an extra data field on the client as the license key.

Install LTBackup Desktop Installs LTBackup Desktop Edition. Will NOT install on a Server OS. Script will run the Install LTBackup Server script if you have a server OS installed. Downloads the files from your LTShare or can be changed to use offsite hosting. Install LTBackup MSP Installs the ShadowProtect MSP version. Install LTBackup MSP 4.2.1 Installs the 4.2.1 version of ShadowProtect

MSP.

Install LTBackup MSP 4.2.5 Installs the 4.2.5 version of ShadowProtect MSP.

Install LTBackup Server Installs LTBackup Server Edition. Downloads the files from your LTShare or can be changed to use offsite hosting.

Install ShadowProtect Image Manager This script installs the ShadowProtect ImageManager. The script downloads the installer, ImageManager.msi, from the LabTech FTP site. After the installer runs, the script then updates the software list for the agent running the script and verifies that the software has been installed and logs the results.

(9)

Uninstall LTBackup Server UnInstalls LTBackup Server Edition. Uninstall ShadowProtect ImageManager This script uninstalls the ShadowProtect

ImageManager. The script downloads the uninstaller, ImageManager.msi, from the LabTech FTP site. After the uninstaller runs, the script then updates the software list for the agent running the script and verifies that the software has been uninstalled and logs the results. Maintenance

Active Directory

AD Schema Information This script reports on schema update and version history for Active Directory. It requires the ActiveDirectory module to run (Windows 7 or Windows Server 2008 R2 with RSAT).

Add Domain User to Domain Group Domain Admins

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and adds the user to the Domain Admins.

Add Domain User to Domain Group Enterprise Admins

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and adds the user to the Domain Enterprise Admins. Add Domain User to Domain Group Schema

Admins

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and adds the user to the Domain Schema Admins. Add Domain User to Local to Group

Administrators

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and adds the user to the local Group Administrators. Add Domain User to Local Group Remote

Desktop Users

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and adds the user to the local Remote Desktop Users.

Add Temporary Local Admin Rights Adds temporary Local Administrator rights to the user currently logged into the agent system. Win 7 64-bit OSs will require a reboot before elevated rights are given.

AutoLogin Disable Disables AutoAdminLogon for a Windows Agent. AutoLogin Enable User/Password Enables AutoAdminLogon for a Windows Agent

using the Username and Password parameters defined at the time of scheduling the script. Backup and Report on GPOs This script will backup ALL GPO's in an

environment and then create a report of current GPO settings. All of the backups and the report are then copied to the uploads directory of your server. This makes them available via the ticket that is created for the backup, as well as the Tools, Tasks and Groups tab of the computer that it is run against.

Delete Domain User from Domain Group Domain Admins

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and deletes the user from the Domain Admins. Delete Domain User from Domain Group

Enterprise Admins

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and deletes the user from the Domain Enterprise

(10)

Admins.

Delete Domain User Group Schema Admins Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and deletes the user from the Domain Schema Admins.

Delete Domain User from Local Group Administrators

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and deletes the user from the local group

Administrators. Delete Domain User from Local Group Remote

Desktop Users

Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and deletes the user from the local group Remote Desktop Users.

Domain User – Disable Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and disables that user in the domain.

Domain User - Enable Takes parameter @UserInNetbiosFormat@ defined at the time of scheduling the script and enables that user in the domain.

Agent

Access Control – Set Restricted Off* This script will place Access Mode restrictions on the Agent limiting access mode to Ask Then Deny for Reboot, VNC, File Explorer, Registry Editor and Screen Shot.

Access Control – Set Restricted On* This script will remove Access Mode restrictions from the agent.

Agent Monitors – Disk – Remove This script will remove all Disk Monitors from an agent.

Agent Monitors – Disk – Remove and Rebuild Clears existing Disk Monitors from an agent and reinstalls new Disk Monitors.

Agent Monitors – Sensor – Remove This script will remove all Hardware Sensor Monitors from a computer.

Agent Monitors – Sensor – Remove and Rebuild Clears existing Sensor Monitors from an agent and reinstalls new Sensor Monitors. This would be useful if you have changed the sensor monitor variance properties in the Dashboard > Config > Configuration and the Properties tab so the new variances can be re-applied to agents. Create Registry Software Hive Monitor on Agent This script will insert a system-based monitor

against any machine run on and will install a monitor which examines the size of the software hive of the registry.

Disable Alerting – Check on Agent* This script will select the Disable Alerting checkbox on the Computer Management > Info > Exclusions tab to disable alerting. This will make the agent a member of the _System Automation\ Monitor Override Control \ Disabled Alerts group.

Disable Alerting – Uncheck on Agent* This script will deselect the Disable Alerting checkbox on the Computer Management > Info > Exclusions tab to enable alerting. This will remove the agent from the _System Automation\ Monitor Override Control \ Disabled Alerts

(11)

group.

Disable Autofix Defrag – Check on Agent* This script will select the Disable AutoFix Defragmentation checkbox on the Computer Management > Info > Exclusions tab to disable autofix defragmentation. This will make the agent a member of the _System Automation \ Monitor Override Control \ Disable Autofix Defrag group.

Disable Autofix Defrag – Uncheck on Agent* This script will deselect the Disable AutoFix Defragmentation checkbox on the Computer Management > Info > Exclusions tab to enable autofix defragmentation. This will remove the agent from the _System Automation \ Monitor Override Control \ Disable Autofix Defrag group. Disable Autofix Disk Cleanup – Check on Agent* This script will select the Disable Autofix Disk

Cleanup checkbox on the Computer

Management > Info > Exclusions tab to disable autofix disk cleanup. This will make the agent a member of the _System Automation \ Monitor Override Control \ Disable Autofix Disk Cleanup group.

Disable Autofix Disk Cleanup – Uncheck on Agent*

This script will deselect the Disable Autofix Disk Cleanup checkbox on the Computer

Management > Info > Exclusions tab to enable autofix disk cleanup. This will remove the agent from the _System Automation \ Monitor Override Control \ Disable Autofix Disk Cleanup group. Disable Autofix Reboot – Check on Agent* This script will select the Disable Reboot

checkbox on the Computer Management > Info > Exclusions tab to disable autofix reboot. This will make the agent a member of the _System Automation \ Monitor Override Control \ Disable Autofix Reboot group.

Disable Autofix Reboot – Uncheck on Agent* This script will deselect the Disable Autofix Reboot checkbox on the Computer Management > Info > Exclusions tab to enable autofix reboot. This will remove the agent from the _System Automation \ Monitor Override Control \ Disable Autofix Reboot group.

Disable Autofix Restart Services – Check on Agent*

This script will select the Disable Autofix Restart Services checkbox on the Computer

Management > Info > Exclusions tab to disable autofix restart services. This will make the agent a member of the _System Automation \ Monitor Override Control \ Disable Autofix Restart Services group.

Disable Autofix Restart Services – Uncheck on Agent*

This script will deselect the Disable Autofix Restart Services checkbox on the Computer Management > Info > Exclusions tab to enable autofix restart services. This will remove the agent from the _System Automation \ Monitor Override Control \ Disable Autofix Restart Services group.

Disable Autofixes – Check on Agent* This script will select the Disable All Autofixes checkbox on the Computer Management > Info > Exclusions tab and will disable all autofixes.

(12)

This will make the agent a member of the _System Automation \ Monitor Override Control \ Disable Autofixes group.

Disable Autofixes – Uncheck on Agent* This script will deselect the Disable All Autofixes checkbox on the Computer Management > Info > Exclusions tab. This will remove the agent from the _System Automation \ Monitor Override Control \ Disable Autofixes group.

Enable Kill Bad Process Autofix – Check on Agent*

****** The Kill Bad Process Autofix enabled by this script can cause damage to computers with unknown applications when those processes may be included in the global bad process list. The effects of these autofixes on your clients’ environments should be understood fully before enabling them. This script will select the Enable Kill Bad Process Autofix checkbox on the Computer Management > Info > Exclusions tab. This will make the agent a member of the _System Automation\ Monitor Override Control \ Enable Kill Bad Process Autofix group.

Enable Kill Bad Process Autofix – Uncheck on Agent*

This script will deselect the Enable Kill Back Process Autofix checkbox on the Computer Management > Info > Exclusions tab. This will remove the agent from the _System Automation\ Monitor Override Control \ Enable Kill Bad Process Autofix group.

Enable Windows Registry Autofixes – Check on Agent*

****** The Registry Autofixes enabled by this script can cause damage to computers with unknown applications including systems with third party Anti-Virus and Anti-Malware software. The effects of these autofixes on your client's environment should be understood fully before enabling them. This script will select the Enable Windows Registry Autofixes checkbox on the Computer Management > Info > Exclusions tab This will make the agent a member of the _System Automation\ Monitor Override Control \ Enable Windows Registry Autofixes group. Enable Windows Registry Autofixes – Uncheck

on Agent*

This script will deselect the Enable Windows Registry Autofixes checkbox on the Computer Management > Info > Exclusions tab. This will remove the agent from the _System Automation\ Monitor Override Control \ Enable Windows Registry Autofixes group.

Offboarding This script will reset Windows Updates back to the default values and uninstall the LabTech agent from the system.

Perf Monitor – Disable This script will push a noperf file to the remote agent that will disable the monitoring of perf monitors. The script will also restart the LabTech agent to pick up the new file. Perf Monitor – Enable This script will remove the noperf file from the

remote agent that disabled the monitoring of perf monitors. The script will also restart the

LabTech agent to pick up the removal of the file. Probe – Remove from an Offline Agent* If the probe flag is set on an Offline Agent, the

(13)

Agent cannot be deleted. This script will clear the probe flag allowing the agent to be deleted normally. If the agent is online, the probe flag will be set back to active as part of the next agent check in.

Reset Server Role Detection This script will clear server role detection and reprocess the server roles.

Set Alert Maintenance Mode This script sets a maintenance mode on an Agent. The time value can be set in three ways:

 Create a @MinutesforMaintenance@ parameter in the Script Editor and a maintenance mode will be set for the @MinutesforMaintenance@.

 Set the variable

@pMinutesforMaintenance@ in a parent script and call ‘Set Alert Maintenance Mode’ and it will set the maintenance for

@pMinutesforMaintenance@ minutes.

 Do nothing and the script will default to a 15 minute maintenance mode.

BES

Blackberry Restart Services Stops and restarts BlackBerry Enterprise Server services.

Blackberry Services Start Starts all Blackberry Enterprise Server services in the proper order.

Blackberry Services Stop Stops all Blackberry Enterprise Server services. Best Practices

Exchange 2010 Best Practice Report This script automatically generates three reports on Best Practices for Exchange 2010. These reports are zipped and attached to the ticket that is created as part of this process. The reports are for Warnings, Best Practices and NonDefault items for Exchange 2010. If you do not see a particular report being generated, this indicates that your server passed all tests in that area. No reports will be generated for server or services that meet Microsoft Best Practices.

Run 2008 R2 Best Practice Report This script will generate 2008 R2 Best Practice Reports for all Windows 2008R2/SBS 2011 servers for the client/domain creating a single master ticket.

Clusters

Get ClusterGroup Info Retrieve a cluster's group information and log it to the script log.

Defragmentation

Defragment Drive Runs defragmentation on Windows machines or downloads Contig for Windows 2000 computers. This script returns results to the Script Log in the History on the agent.

Install Contig Installs Contig on Windows 2000 machines. This script is called from the Defragmentation script when Windows 2000 is discovered.

(14)

Email

E-Mail RBL Checks For use on Exchange or other email servers. Checks the %RouterIP%(public IP) address of the machine for existence in many RBL that could result in email being blocked.

If the machine running this script is using OpenDNS or any other DNS service that redirects unknown DNS names, this script will generate false positives.

*The script may not report the correct public IP address as the %RouterIP% shown on the Computer Management screen, if the public IP is not set as the RouterIP.

Event Logs

Clear Event Logs Clears the Event Logs.

Export & Upload Event Logs This works on Windows Server 2008

R2/Windows 7 machines, and Vista, but will not work on XP machines. The batch file is based on a powerful command wevtutil which has the following command: Windows Events Command Line Utility. Enables you to retrieve information about event logs and publishers, install and uninstall event manifests, run queries, and export, archive, and clear logs.

Set Event Log Size Sets the Event Logs size on the target machine. Exchange

Exchange 2007/10 User Email Stats This script automatically generates a report that provides the email stats for users in Exchange 2007 or 2010 environments. Analyzes Exchange 2007 or 2010 Message Tracking Logs and produces a .csv file of mail stats per user, and keeps distribution list usage. It will find all the HT servers in the organization, retrieve the logs from the previous day, and generate stats for each user, by primary smtp address, for:

 Total Messages and Bytes Sent

 Unique Messages and Bytes Sent

 Total Messages and Bytes Received Please note that Hub Transport servers require message tracking be enabled to receive output from the script.

Exchange Database Report – 2010 Only This script automatically generates a report that provides database status information for Exchange 2010 Servers only.

Exchange Environment Summary This script automatically generates a report that gives you an overview of your environment, Exchange 2003, 2007, 2010 servers and database availability groups. The script doesn’t support detailed information about Exchange 2007/2003 CCR/SCC clusters, but these are shown as ClusMBX in the output.

(15)

WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER. – Original script by Steve Goodman

Exchange Message Queues Checks number of messages in Exchange 2003 or 2010 message queues. If warning or critical thresholds are reached, the number of messages is outputted. Warning Level = 10 Critical Level = 20

Get Exchange 2003 Mailbox Sizes This script queries the Exchange server for a list of the mailboxes and their sizes. This script requires an Administrator password be set for the location. This script returns results to the Script Log in the History on a computer. Get Exchange 2003 Public Folder Size This script scans the Exchange server’s public

folder size. This script requires an Administrator password be set for the location. This script returns results to the Script Log in the History on a computer.

Get Exchange 2003 Queue This script runs a Queue Check on the Exchange server. This script uses a .vbs script to complete its task. This script requires an Administrator password be set for the location. This script returns results to the Script Log in the History on a computer.

Hard Disk Cleanup

Disk Clean Setup This script sets the registry entries for

cleanmgr.exe to automatically clean files in the following locations: Active Setup Temp folder, Content Indexer Cleaner, downloaded Program Files, Internet Cache Files, Memory Dump files and old ChkDsk files.

Disk Cleanup This script will run Clean Manager using the registry value set by the Clean Manager

Registry Entries script. The script first tries to run it as admin if the password is set and if not, it runs it via the Tray program as the logged on user and if that does not work it will schedule it with the Task Manager. The script will also run the built-in Disk Cleanup settings in LabTech. This script returns results to the Script Log in the History on a computer

IE

IE8 – Block Blocks the automated Install of Internet Explorer 8.

IE8 – Unblock Removes the registry entry that blocks the automatic Internet Explorer 8.

IE9 – Block Blocks the automated Install of Internet Explorer 9.

IE9 - Unblock Removes the registry entry that blocks the automatic Internet Explorer 9.

Uninstall IE 9.0 Uninstalls Internet Explorer 9.0 from the system. To complete the uninstall, the agent will need to

(16)

be rebooted. IE9 will continue to run until the agent computer is rebooted.

IIS

Backup IIS5 Metabase This script backs up the IIS 5 Metabase and stores it locally. This script returns results to the Script Log in the History on a computer. Backup IIS6 Metabase This script backs up the IIS 6 Metabase and

stores it locally. This script returns results to the Script Log in the History on a computer. Backup IIS7 Configuration This script will backup the configuration settings

for IIS7 and transfer the backup to the server's Uploads directory for the client and machine for which it is run on.

Remove IIS Cipher Suite for PCI/FIPS 140 Compliance

This script will remove protocol and cipher suites on Windows Server 2003 and 2008 machines running IIS for PCI/ FIPS140 requirements that were set prior. THIS PROCESS REQUIRES A SYSTEM REBOOT TO TAKE EFFECT. THIS REBOOT IS AUTO SCHEDULED FOR 5:30 AM.

Set IIS Cipher Suite for FIPS 140 Compliance This script will set protocol and cipher suites on Windows Server 2003 and 2008 machines running IIS for FIPS140 requirements. This does not validate a client is FIPS140 Compliant but will set the IIS settings to the required values. Set IIS Cipher Suite for PCI Compliance This script will set protocol and cipher suites on

Windows Server 2003 and 2008 machines running IIS for PCI requirements. This does not validate a client is PCI Compliant but will set the IIS settings to the required values.

Test SSL Ciphers This script will test port 443 on IIS machines and report on the Ciphers to help in determining compliance. This script is designed to only run on Windows Servers.

Mac OS X

Downgrade Apple Remote Desktop(ARD) Agent to 3.4 on OSX 10.7

This script fixes an issue with remotely

connecting to Apple OSX Lion (10.7) computers from Windows OS. Run this script if you are having trouble connecting to Lion machines using the Mac Redirector.

OSX Files Verify This script verifies the Mac OSX file system. If the text ‘appears to be OK’ does not appear in the command output, assume the disk needs repair and ticket.

OSX Permissions Repair This script repairs Mac OS X file system permissions. If the text ‘differs’ exists in the command output, assume the permissions differ from the base configuration.

OSX Permissions Verify This script verifies Mac OS X file system permissions. If the text ‘differs’ exists in the command output, assume the permissions differ from the base configuration.

(17)

OS X.

OSX Software Google Chrome Uninstall Removes Google Chrome from a Mac OS X computer.

OSX Software Updates – Automatic Check – Schedule

This script enables Apple Software Updates to perform automatic checking of available updates.

OSX Software Updates - Automatic Check – Unschedule

This script disables Apple Software Updates from performing automatic checking of available updates.

OSX Software Updates – Install All Appropriate Updates

Installs all appropriate updates, as defined by Apple, on the agent computer.

OSX Software Updates – Install Recommended Updates

Installs all recommended updates, as defined by Apple, on the agent computer.

OSX Software Updates – List All Appropriate Updates

Lists all appropriate updates that are

recommended for install by Apple in the agent’s script log.

OSX Software Updates – Reset Ignored Updates

Resets all computers’ updates that have been marked as ‘ignored’ on the computer and lists the updates that were cleared in the agent’s script log.

OSX VNC Password – Set Agent Password from LabTech Ignite

This script pulls the MACVNCPassword that is configured on the individual agent in Ignite™ and sets the Mac OSX agent’s VNC password. OSX VNC Password – Set Random Agent

Password for LabTech Ignite Agent

This script resets the MACVNCPassword that is configured on the individual agent in Ignite™ to a random value and pushes the new password as the Mac OSX agent’s VNC password. Misc

Fix Performance Counters Reloads the Windows performance counters. Some LabTech features will not work if they are broken.

MSSQL

MSSQL Reporting This script automatically generates a report that gives you a schema overview of your

environment for MSSQL 2005 and 2008. This script is called from the MS SQL 2005 Servers, MS SQL 2008 R2 and MS SQL 2008 Servers sub-groups (Service Plans/Windows

Servers/Server Roles/Windows Database Servers). Scheduled to run at 11a Monday mornings.

Patching

Approve All Critical Updates on an Individual Agent*

This script can be run on a client, location, computer, or group to auto approve all critical hotfixes for the computer that are available. If you want more than just critical, set the end of the first step to include whichever type you'd like ex: ('Critical','Important','Moderate','Low','') Disable All Patch Approval – Check on Agent* This script will select the Disable All Patch

Approval checkbox on the Computer Management > Info > Patching tab. This will remove the agent from the Windows

(18)

Updates.Approved Servers or Workstations group.

Disable All Patch Approval – Uncheck on Agent* This script will deselect the Disable All Patch Approval checkbox on the Computer Management > Info > Patching tab. This will allow the agent to rejoin the Windows Updates.Approved Servers or Workstations group.

Disable Automated Patch Install – Check on Agent*

This script will select the Disable Automated Patch Install checkbox on the Computer Management > Info > Patching tab. This will remove the agent from any patch install windows. Selecting this checkbox will result in the Under Microsoft Patch Contract being deselected by a background system process. Disable Automated Patch Install – Uncheck on

Agent*

This script will deselect the Disable Automated Patch Install checkbox on the Computer Management > Info > Patching tab. This will allow the agent to rejoin the appropriate patch install groups set at the agent’s location. Fix Resync System Time Stops/Starts the W32Time service and forces a

resync, trapping errors and creating an alert on failure.

Fix Update MS Installer to v4.5 Upgrades Windows Installer to version 4.5. Fix Update MS Script Engine to 5.7 Updates MS Script Engine to 5.7.

Install All Approved Patches This script will install all approved patches on a machine it is run against. The machine must be in the Approved folder for Windows Updates or this script will fail.

Microsoft Definition Update Checks for missing Microsoft Definition Updates and pushes the install to the Agent if they are not Installed. Covers Exchange

Anti-Spam/Blocklist, Office 2010 junk email filters, Microsoft Security Essential and Windows Defender definitions. *** This script does not honor Patch Extra Data fields or patch windows. Patch Approval Deny .NET 4 – Check on Agent* This script will select the Deny Install of .NET 4

checkbox on the Computer Management > Info > Patching tab that will deny the install of .NET 4 from being installed through the system patch install process. This will make the agent a member of the Windows UpdatesDeny Rules -Deny .NET 4 group.

Patch Approval Deny .NET 4 – Uncheck on Agent*

This script will deselect the Deny Install of .NET 4 checkbox on the Computer Management > Info > Patching tab that will enable the install of .NET 4 through the system patch install process. This will remove the agent from the Windows Updates-Deny Rules -Deny .NET 4 group. Patch Approval Deny Genuine Advance – Check

on Agent*

This script will select the Deny Install of Genuine Advantage checkbox on the Computer

Management > Info > Patching tab that will deny the install of Genuine Advantage from being installed through the system patch install process. This will make the agent a member of

(19)

the Windows Updates-Deny Rules -Deny Genuine Advantage group.

Patch Approval Deny Genuine Advance – Uncheck on Agent*

This script will deselect the Deny Install of Genuine Advantage checkbox on the Computer Management > Info > Patching tab that will enable the install of Genuine Advantage through the system patch install process. This will remove the agent from the Windows Updates-Deny Rules -Updates-Deny Genuine Advantage group. Patch Approval Deny IE8 – Check on Agent* This script will select the Deny Install of IE 8

checkbox on the Computer Management > Info > Patching tab that will deny install of IE8 from being installed through the system patch install process. This checkbox will make the agent a member of the Windows Updates \ Deny Rules \ Deny IE group.

Patch Approval Deny IE8 – Uncheck on Agent* This script will deselect the Deny Install of IE 8 checkbox on the Computer Management > Info > Patching tab that will enable the install of IE8 through the system patch install process. This checkbox will remove the agent from the Windows Updates \ Deny Rules \ Deny IE group. Patch Approval Deny IE9 – Check on Agent* This script will select the Deny Install of IE 9

checkbox on the Computer Management > Info > Patching tab that will deny install of IE9 from being installed through the system patch install process. This checkbox will make the agent a member of the Windows Updates \ Deny Rules \ Deny IE group.

Patch Approval Deny IE9 – Uncheck on Agent* This script will deselect the Deny Install of IE 9 checkbox on the Computer Management > Info > Patching tab that will enable the install of IE9 through the system patch install process. This checkbox will remove the agent from the Windows Updates \ Deny Rules \ Deny IE group. Patch Approval Deny MSSearch – Check on

Agent*

This script will select the Deny Install of MSSearch checkbox on the Computer

Management > Info > Patching tab that will deny install of MSSearch from being installed through the system patch install process. This checkbox will make the agent a member of the Windows Updates \ Deny Rules \ Deny MSSearch group. Patch Approval Deny MSSearch – Uncheck on

Agent*

This script will deselect the Deny Install of MSSearch checkbox on the Computer Management > Info > Patching tab that will enable the install of MSSearch through the system patch install process. This checkbox will remove the agent from the Windows Updates \ Deny Rules \ Deny MSSearch group.

Patch Approval Deny Silverlight – Check on Agent*

This script will select the Deny Install of Silverlight checkbox on the Computer

Management > Info > Patching tab that will deny install of Silverlight from being installed through the system patch install process. This checkbox will make the agent a member of the Windows Updates \ Deny Rules \ Deny Silverlight group.

(20)

Patch Approval Deny Silverlight – Uncheck on Agent*

This script will deselect the Deny Install of Silverlight checkbox on the Computer Management > Info > Patching tab that will enable the install of Silverlight through the system patch install process. This checkbox will remove the agent from the Windows Updates \ Deny Rules \ Deny Silverlight group.

Patch Approval Deny Windows OS Service Packs – Check on Agent*

This script will select the Deny Install of Windows OS Service Packs checkbox on the Computer Management > Info > Patching tab that will deny install of Windows OS Service Packs from being installed through the system patch install process. This checkbox will make the agent a member of the Windows Updates \ Deny Rules \ Deny Windows OS Service Pack group.

Patch Approval Deny Windows OS Service Packs – Uncheck on Agent*

This script will deselect the Deny Install of Windows OS Service Packs checkbox on the Computer Management > Info > Patching tab that will enable the install of Windows OS Service Packs through the system patch install process. This checkbox will remove the agent from the Windows Updates - Deny Rules - Deny Windows OS Service Pack group.

SP Install Now – Windows 2003 x86 SP2 This script will force an install of Service Pack 2 for Windows Server 2003 x86. The script will ignore the patch install and patch reboot windows. The Service Pack install process will perform one or more forced reboots of the agent. This is a long running process due to the size of the offline installer and the length of the service pack install process.

SP Install Now – Windows 2003/XP x64 SP2 This script will force an install of Service Pack 2 for Windows 2003/XP x64. The script will ignore the patch install and patch reboot windows. The Service Pack install process will perform one or more forced reboots of the agent. This is a long running process due to the size of the offline installer and the length of the service pack install process.

SP Install Now – Windows XP x86 SP3 This script will force an install of Service Pack 3 for Windows XP x86. The script will ignore the patch install and patch reboot windows. The Service Pack install process will perform one or more forced reboots of the agent. This is a long running process due to the size of the offline installer and the length of the service pack install process.

SP Install Now – Windows 7/2008R2 SP1 This script will force an install of Service Pack 1 for Windows 7 and 2008R2. The script will ignore the patch install and patch reboot windows. The Service Pack install process will perform one or more forced reboots of the agent. This is a long running process due to the size of the offline installer and the length of the service pack install process.

(21)

for Windows Vista and Server 2008 (nonR2). The script will ignore the patch install and patch reboot windows. The Service Pack install process will perform one or more forced reboots of the agent. This is a long running process due to the size of the offline installer and the length of the service pack install process.

Policy Management

Disable CDrom Drives This script will disable all the CDRom drives for next boot.

Disable Floppy Drives This script will disable all Floppy drives for next boot.

Disable HD Floppy Drives This script will disable all HD Floppy drives for next boot.

Disable USB Drives This script will disable the USB Storage Engine for next boot.

Enable CDRom Drives This script will enable all the CDRom drives for next boot that have been disabled by these scripts.

Enable Floppy Drives This script will enable all Floppy drives for next boot after it has been disabled by a script. Enable HD Floppy Drives This script will enable all HD Floppy drives for

next boot after it has been disabled by a script. Enable USB Drives This script will enable the USB Storage Engine

for next boot after it has been disabled by a script.

Enable Wake on LAN Enables Wake on Lan in Windows.

This script will not enable it in BIOS but most newer computers have this enabled and Windows versions prior to 7 will have it disabled. Group Policy Force Update Reloads the Group Policy on Windows. This

script returns results to the Script Log in the History on a computer.

Set Time Server Sets the Windows clock to retrieve the time from pool.ntp.org. This script returns results to the Script Log in the History on a computer. Set Trusted Site Sets IE Trusted Sites. Add more steps to cover

more sites. This example adds

www.labtechsoft.com to the trusted sites list. This script returns results to the Script Log in the History on a computer.

Powershell

Disable Powershell Remote Execution This script disables the remote execution for PowerShell scripts to be enabled for purposes of running scripts remotely on other clients. This requires PS 2.0.

Enable Powershell Remote Execution – Permanent

This script will call the 'Enable Powershell Remoting - Temp' script and have it skip the disable step, leaving remoting enabled. Enable Powershell Remote Execution - Temp This script sets the remote execution for

(22)

running scripts remotely on other clients. This requires PS 2.0.

Reset Powershell Execution Policy Restores the Powershell execution policy ot the setting recorded by the ‘Set Powershell Policy’ script.

Set Powershell Execution Policy Determines and stores the original Powershell execution policy, then sets the policy to ‘unrestricted’. Run the ‘Reset Powershell Execution Policy’ script to restore the original policy.

Security

Common Password Check *** This script can trigger account lockout if it is defined. Use with caution. This script will check every account on a computer to see if it uses one of the common passwords listed in the Global Variables section. To add additional passwords to test just edit the Global Variables list on the Globals & Parameters tab of the Script Editor.

Enable UAC Enables the UAC as VNC requires UAC enabled in order for Ctrl-Alt-Del to be sent and received on remote workstation.

Tickets

Ticket Finish by Ticket Number Ticket Multi-Finish will close a range of unclosed Tickets based on a range of ticket numbers. This script should be run against a single agent, normally your RMM server agent. The Begin and End TicketID parameters must be set when calling this script.

Ticket Finish by Ticket Subject This script will finish open tickets based on the parameter @TicketSubjectToClose@ passed on the script schedule dialog. You may use % as a wildcard character when defining the ticket subject.

vPro

vPro Finder This script downloads a tool to determine the vPro version and then populates the

vProamtversion extra data field. vPro Power Off Machine Powers off vPro enabled computer. vPro Power On Machine Powers on vPro enabled computer. vPro Provisioning This script will enable vPro on a supported

computer. You must set the vpropass or vPro Pass fields in the extra data field on the location or client.

vPro Unconfigure Turns off vPro for the target machine. VSS

Reset VSS Writers Resets VSS Writers and then tests for remaining errors.

Messaging

(23)

Messaging system.

Variables returned from the message:

@firstname@, @lastname@, @emailaddress@, @phonenumber@, @cellnumber@.

Run Maintenance This script will schedule maintenance scripts to run at the time the remote user has selected. The variable passed back is %maintenance time%.

Scheduled Commands There are currently no default scripts for the Scheduled Commands category.

Software Adobe

Install Adobe Flash Player 10 Active X Auto Created Software Deployment Script to deploy Adobe Flash Player 10

Install Adobe Reader 10.0.1 Auto Created Software Deployment Script to deploy Adobe Flash Player 10.0.1.

Uninstall Adobe Flash Player Uninstalls any version of Adobe Flash Player. Google

Chrome Installer Installs Google Chrome on the computer system for all users.

Chrome Uninstaller Removes Google Chrome on the computer system.

Java

Java JRE v6 Auto Created Software Deployment Script to deploy Java JRE v6. Script will install both the i586.exe and x64.exe if the machine is 64bit; otherwise, it will only install the i586.exe. LogMeIn

LogMeIn Free Installer This script will install the LogMeIn Free edition. The first time this script is run it will tell the LabTech server to get the LogmeIn.msi and edit it for silent install. It will then create a new custom menu to launch Logmein for the computer.

LogMeIn Free Uninstaller This script will uninstall the LogMeIn Free edition.

Microsoft

Install Microsoft FixIt This script installs the Microsoft FixIt to defend against vulnerability in MHTML with Internet Explorer.

http://www.microsoft.com/technet/security/advis ory/2501696.mspx

Microsoft SilverLight Auto Created Software Deployment Script to deploy Microsoft Silverlight.

Office 2007 File Converters Auto Created Software Deployment Script to deploy Office 2007 File Converters.

Uninstall Microsoft FixIt This script uninstalls the Microsoft FixIt settings that were set to defend against vulnerability with MHTML in Internet Explorer.

(24)

http://www.microsoft.com/technet/security/advis ory/2501696.mspx

Tools and Utilities

Shell Commands Unix Shell commands, recompiled for Win32 OS. Includes a bash compatible shell sh.exe and 119 commands. Complete commands list: env, makemsg, su, expr, man, sum, agrep, factor, md5sum, sync, ansi2knr, fgrep, mkdir, tac, basename, flex, mkfifo, tail, bc, fmt, mknod, tar, bison, fold, mv, tee, bunzip2, fsplit, mvdir, test, bzip2, gawk, nl, touch, bzip2recover, gclip, od, tr, cat, gplay, paste, type, make, split, egrep, makedepend, stego, chgrp, grep, patch, uname, chmod, gsar, pathchk, unexpand, chown, gunzip, pclip, uniq, cksum, gzip, pr, unrar, cmp, head, printenv, unshar, comm, id, printf, unzip, cp, indent, pwd, uudecode, csplit, install, recode, uuencode, cut, join, rm, wc, date, jwhois, rman, wget, dc, less, rmdir, dd, lesskey, sdiff, which, df, libfl.a sed, whoami, diff, libfl.lib seq, xargs, diff3, ln, sh, yes, dircolors, logname, shar, zcat, dirname, ls, sleep, zip, du, m4, sort, echo Uninstallers

Remove AOL Toolbar Finds and removes the AOL Toolbar. Remove Google Toolbar Finds and removes the Google Toolbar. Remove IE Toolbars Removes the AOL, ASK, Google and Yahoo

toolbars from Internet Explorer and Windows. Remove Yahoo Toolbars Finds and removes the Yahoo Toolbar. System Automation

Agent Maintenance

Agent Maintenance – Non-Contract Performs nightly maintenance tasks based on the Agent's installed operating system. This script should be scheduled for off hour maintenance.

Agent Maintenance – Contract Performs nightly maintenance tasks based on the Agent's installed operating system. This script should be scheduled for off hour maintenance.

Agent Monitor Creation This script is called during the Onboarding process to create the initial agent based monitors. All monitors created in this script are remote monitors assigned directly to the agent. A separate script running on the server will maintain these monitors on a daily basis removing invalid and adding new monitors. Agent Monitor Creation – Disk Creates Monitors for detected hard drives at the

agent level and sets scriptstate to note that the SensorID already has a Monitor assigned to it. Agent Monitor Creation – Sensors Creates Monitors for detected hardware sensors

at the agent level and sets scriptstate to note that the SensorID already has a Monitor assigned to it.

(25)

Agent Retrieve RDP Management Port This script will pull the local RDP port config on the Agent and insert it into the Agent's

management port field enabling RDP redirectors to connect to RDP when the port has been changed from 3389 TCP to another TCP port. Best Practices

Master Script Run 2008 R2 Best Practice Report This script will generate 2008 R2 Best Practice Reports for all Windows 2008R2/SBS 2011 servers for the client/domain, creating a single master ticket.

Clusters

Patch Cluster – Detect Owner and Find Patch Controller

This script is run against all members of a cluster to detect the owner of the cluster. Non-owners will exit after performing a pre-patch cleanup and audit of the members’ local patches to the server. The owner will then search for a cluster patch controller candidate. Cluster members cannot be cluster patch controllers as the patching process will reboot all cluster members during the patching process losing the state of the patching process. Cluster patch controllers also must be domain members of the same domain as the cluster and must be Windows 2008 or above with powershell 2.0 installed. If there is no machine that meets these requirements cluster patching will fail to run.

Deployment

LabTech Agent Deployment The LabTech Agent Deployment script downloads the LTDeployAgent tool and installs the LabTech Agent on a list of IP addresses that is returned from a command line arp command. The tool will attempt the install of the Agent and return whether it was successful or not. If the agent already exists on that IP, the tool will skip agent installation. If the tool returns a fail, the script will try to perform a manual install of the agent.

Push LabTech to Domain This script must be run from a probe computer. The probe should be a domain controller and the domain password MUST be set for the probes' locations. This will email a report to the Contact Email Address listed in %contactemail% or use the property DomainPushEmailOverride. Functions

Autofix Post Time This script allows the autofix scripts to post time to the tickets when autofixes are successfully applied. For autofix time to post you must set the system property

_sysTicketEnableAutofixTime from 0 to 1. Time entries may be changed by replacing the global variable on the individual script time recording table with manually entered selected values. This is only designed to be called from Autofix scripts.

(26)

Location or Client. If any of the above is set return DisabledAlerting=1

Get Master ComputerID Gets the first Master Computer ID returned by a SQL Query.

Get Master ComputerIP Gets the first Master Computer IP address returned by a SQL Query.

Get Ticket Info CategoryID If passed a variable @InfoCategory@, the script will attempt to set the

@TicketCreationCategory@ else the script will return the global property

@popTicketInfoCategory@ as the @TicketCreationCategory@

Hotfixes Required for BPA This script will walk a group of Hotfixes required for 2008 R2 Analyzer and install them if needed.

Launch Exchange Mgt Shell To be called by parent script needing Exchange Mgt Shell to run another PowerShell script - variable passed back to parent script

@exchshell@. To use this function, call it from a parent script and then in the parent simply issue a Shell As Admin that contains the following: @exchshell@ yourPSscriptname and or 'path and name'

---This script will locate the path for Exchange as it is installed on your system and then present back a variable that will be used to run a PowerShell script in the Exchange Management Shell.

Load Properties This script will load global properties based on a @LoadPropertyClass@ that must be defined before this script is called. If the class of properties does not exist, the script will create the properties in the system inserting default values to be picked up by future script runs. These can be modified in the Dashboard > Config > Configuration > Properties tab. Load Properties – AV Scan Wraps the Load Properties function, sets the

LoadPropertyClass = 5 for AV Scan Properties and calls the main function.

Load Properties – Daily Health Check This script loads all of the properties for the daily health check report.

Load Properties – Onboarding Wraps the Load Properties function, sets the LoadPropertyClass = 3 for Onboarding Properties and calls the main function. Load Properties – PatchAccounting Wraps the Load Properties function, sets the

LoadPropertyClass = 7 for PatchAccounting Properties and calls the main function. Load Properties – Patch Approval* Loads Patch Automated Patch Approval

properties used to Auto Approve/Ignore classes of patches on the Windows Updates.Approved group.

Load Properties – Patch Override* Loads Patch Override properties used to control the contents of the hotscripts table.

(27)

Load Properties – RBL Check Wraps the Load Properties function, sets the LoadPropertyClass = 6 for Email RBL Check Properties and calls the main function. Load Properties – Role Control Wraps the Load Properties function, sets the

LoadPropertyClass = 4 for Role Control Properties and calls the main function. Load Properties – Sensors Wraps the Load Properties function, sets the

LoadPropertyClass = 1 for Sensor Properties and calls the main function.

Load Properties – Ticketing Wraps the Load Properties function, sets the LoadPropertyClass = 2 for Ticket Properties and calls the main function.

Offline Backup Do not delete this or the offline backup will fail to work.

Patch Cluster – Controller Master Run This script is called by the 'Patch Cluster - Detect Owner and Find Patch Controller' script which identifies a valid cluster patch controller and runs this script against a single system. Administrative credentials must be set on the location of this agent for patch clustering to work.

Patch Install MSU Installs Vista class MSU update files. This script must be run from a calling script and the following values should be set:

 @kbid@ - Knowledge Base Article ID

 @url@ - Download source for the patch

 @desc@ - Patch Description RBL Test Called By E-Mail RBL checks.

Run BPA 2008 R2 Best Practice Report This script will generate a report on Best Practices using the 2008 R2 Best Practice modeling that is built into Windows. The script will only report Best Practice information on 2008 R2 and SBS 2011 servers.

Show Client Variables This script is to be run from the client, it will write all internal and user script variables to the script log.

Show Variables* Writes the internal and user script variables to the Script log. This script can be called from your script, to log all of the variables at that moment in time.

Successful Patch Jobs This script is called by the Patch Accounting script and should not be run directly. Ticket Auto Expire This script will set a system state to hold the

future time when the ticket may be

autoclosed.for the current %ticketid%. This script should be called directly after a ‘ticket create’ function as it use the %ticketid% internal variable. A client scheduled script auto closes all tickets that are older then the unixtime() value set in the script state variable.

Ticket Comment* The ‘Ticket Comment’ script is called by LabTech generated autofix, ticket consolidation and other stock scripts. It will create a ticket if

(28)

the ticket does not exist or comment the ticket if it already exists. The following variables must be set before calling this script:

@TicketCreateSubject@ - Subject for the ticket @TicketCreateBody@ - Ticket Body /Comment Text

@TicketComment@ - Ticket Comment for an existing ticket.

Ticket Finish* This script will handle finishing an existing ticket, if one exists. The script is a function script that is designed to be only called from another script. @TicketFinishBody@ must be set before calling this script.

Ticket Max Consolidation* Called by ‘Ticket Consolidation’ Autofix script. This script checks @monitorticketid@ to see if it has more ticket comments then the maximum number of comments defined in

@propTicketMaxConsolidationComments@. Both of these values must be defined before calling this script. The script returns

@TicketMaxComments@ 0 for no, 1 for the max number of comments have been met. The calling script must action on this value. Ticket Consolidation* This is the back-end ‘Ticket Consolidation’

sub-script. It must be called from a primary script that sets ticket information to be posted. This script should not be scheduled directly.

Verify Location Admin Credentials Validates the configuration information for ‘Login to use for Administrator Access’ has been correctly entered on the location’s ‘Deployment & Defaults’ and ‘Passwords’ tabs. Uses the ‘whoami’ function to verify the username and password for the user.

Health Check

Daily Health Check Setup This script will create the Properties and other necessary setups needed to run these scripts. The Else section contains items used to effect the XML Export and is NEVER meant to run. Daily Health Check* Performs basic health check of every machine to

be used in a daily health report. Control this script from the Client Info Tab.

Daily Health Disk Event Recorder Call this script from a monitor that is monitoring Disk Event Log errors you want to track. Daily Health Event Recorder Call this script from a monitor that is firing on

Event Log errors you want to track.

Daily Health Report* Emails Reports to clients based on the settings of the Client. If Weekly, Monthly and Daily are set then all three will NOT be sent, instead the most detailed one will be chosen. This script should be scheduled to run once a day from the maintenance script window.

Onboarding

Initial Software Install – Partner This script is designed for you to add software installs you want on every onboarded client.

References

Related documents