Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 3.25 KB

Update-LTService.md

File metadata and controls

64 lines (53 loc) · 3.25 KB

Update-LTService

SYNOPSIS

This function will manually update the LabTech agent to the requested version.

SYNTAX

Update-LTService [[-Version] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

This script will attempt to pull current server settings from machine, then download and run the agent updater.

PARAMETERS

-Version <String>

This is the agent version to install.

Example: 120.240

This is needed to download the update file. If omitted, the version advertised by the server will be used.

Required                    false
Position                    1
Default value
Accept pipeline input       false
Accept wildcard characters  false

-WhatIf <SwitchParameter>

Required                    false
Position                    named
Default value
Accept pipeline input       false
Accept wildcard characters  false

-Confirm <SwitchParameter>

Required                    false
Position                    named
Default value
Accept pipeline input       false
Accept wildcard characters  false

EXAMPLES

EXAMPLE 1

PS C:\>Update-LTService -Version 120.240

This will update the Automate agent to the specific version requested, using the server address in the registry.

EXAMPLE 2

PS C:\>Update-LTService

This will update the Automate agent to the current version advertised, using the server address in the registry.

NOTES

Version: 1.0

Author: Darren White

Creation Date: 8/28/2018

Purpose/Change: Initial function development