Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bringing base to current with primary repository. #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Bringing base to current with primary repository. #43
Changes from all commits
05a4436
5333534
333a7d0
b2768c6
35b107e
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
ConvertFrom-LTSecurity
SYNOPSIS
This function decodes an encoded Base64 value
SYNTAX
DESCRIPTION
This function decodes the provided string using the specified or default key.
PARAMETERS
-InputString <String[]>
This is the string to be decoded.
-Key <String[]>
This is the key used for decoding. If not provided, default values will be tried.
-Force <SwitchParameter>
This forces the function to try alternate key values if decoding fails using provided key.
NOTES
Version: 1.1
Author: Darren White
Creation Date: 1/25/2018
Purpose/Change: Initial function development
ConvertTo-LTSecurity
SYNOPSIS
This function encodes a value compatible with LT operations.
SYNTAX
DESCRIPTION
This function encodes the provided string using the specified or default key.
PARAMETERS
-InputString <String>
This is the string to be encoded.
-Key <Object>
This is the key used for encoding. If not provided, a default value will be used.
NOTES
Version: 1.1
Author: Darren White
Creation Date: 1/25/2018
Purpose/Change: Initial function development
Get-LTError
SYNOPSIS
This will pull the %ltsvcdir%\LTErrors.txt file into an object.
SYNTAX
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.2
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/18/2018
Purpose/Change: Changed Erroraction from Stop to unspecified to allow caller to set the ErrorAction.
Get-LTLogging
SYNOPSIS
This function will return the logging level of the LabTech service.
SYNTAX
NOTES
Version: 1.1
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/18/2018
Purpose/Change: Changed Erroraction from Stop to unspecified to allow caller to set the ErrorAction.
Get-LTProbeErrors
SYNOPSIS
This will pull the %ltsvcdir%\LTProbeErrors.txt file into an object.
SYNTAX
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.1
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/18/2018
Purpose/Change: Changed Erroraction from Stop to unspecified to allow caller to set the ErrorAction.
Get-LTProxy
SYNOPSIS
This function retrieves the current agent proxy settings for module functions to use the specified proxy configuration for all communication operations as long as the module remains loaded.
SYNTAX
DESCRIPTION
This function will get the current LabTech Proxy settings from the installed agent (if present). If no agent settings are found, the function will attempt to discover the current proxy settings for the system. The Proxy Settings determined will be stored in memory for internal use, and returned as the function result.
NOTES
Version: 1.1
Author: Darren White
Creation Date: 1/24/2018
Purpose/Change: Initial function development
Update Date: 3/18/2018
Purpose/Change: Ensure ProxyUser and ProxyPassword are set correctly when proxy
is not configured.
Get-LTServiceInfo
SYNOPSIS
This function will pull all of the registry data into an object.
SYNTAX
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.4
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable.
Update Date: 3/12/2018
Purpose/Change: Support for ShouldProcess to enable -Confirm and -WhatIf.
Update Date: 8/28/2018
Purpose/Change: Remove '~' from server addresses.
Get-LTServiceInfoBackup
SYNOPSIS
This function will pull all of the backed up registry data into an object.
SYNTAX
NOTES
Version: 1.1
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 5/11/2017
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/18/2018
Purpose/Change: Changed Erroraction from Stop to unspecified to allow caller to set the ErrorAction.
Get-LTServiceSettings
SYNOPSIS
This function will pull the registry data from HKLM:\SOFTWARE\LabTech\Service\Settings into an object.
SYNTAX
NOTES
Version: 1.1
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Hide-LTAddRemove
SYNOPSIS
This function hides the LabTech install from the Add/Remove Programs list.
SYNTAX
DESCRIPTION
This function will rename the DisplayName registry key to hide it from the Add/Remove Programs list.
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.2
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/12/2018
Purpose/Change: Support for ShouldProcess. Added Registry Paths to be checked.
Modified hiding method to be compatible with standard software controls.
Install-LTService
SYNOPSIS
This function will install the LabTech agent on the machine.
SYNTAX
DESCRIPTION
This function will install the LabTech agent on the machine with the specified server/password/location.
PARAMETERS
-Server <String[]>
This is the URL to your LabTech server.
example: https://lt.domain.com
This is used to download the installation files.
(Get-LTServiceInfo|Select-Object -Expand 'Server Address' -ErrorAction SilentlyContinue)
-ServerPassword <String>
-LocationID <Int32>
This is the LocationID of the location that the agent will be put into.
(Get-LTServiceInfo).LocationID
-TrayPort <Int32>
This is the port LTSvc.exe listens on for communication with LTTray processess.
-Rename <String>
This will call Rename-LTAddRemove after the install.
-Hide <SwitchParameter>
This will call Hide-LTAddRemove after the install.
-SkipDotNet <SwitchParameter>
This will disable the error checking for the .NET 3.5 and .NET 2.0 frameworks during the install process.
-Force <SwitchParameter>
This will disable some of the error checking on the install process.
-NoWait <SwitchParameter>
This will skip the ending health check for the install process.
The function will exit once the installer has completed.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
EXAMPLES
EXAMPLE 1
NOTES
Version: 1.8
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 6/10/2017
Purpose/Change: Updates for pipeline input, support for multiple servers
Update Date: 6/24/2017
Purpose/Change: Update to detect Server Version and use updated URL format for LabTech 11 Patch 13.
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable. Additional Debugging.
Update Date: 8/29/2017
Purpose/Change: Additional Debugging.
Update Date: 9/7/2017
Purpose/Change: Support for ShouldProcess to enable -Confirm and -WhatIf.
Update Date: 1/26/2018
Purpose/Change: Added support for Proxy Server for Download and Installation steps.
Update Date: 2/13/2018
Purpose/Change: Added -TrayPort parameter.
Update Date: 3/13/2018
Purpose/Change: Added -NoWait parameter.
Added minimum size requirement for agent installer to detect and skip a bad file download.
Update Date: 6/5/2018
Purpose/Change: Added -SkipDotNet parameter.
Allows for skipping of .NET 3.5 and 2.0 framework checks for installing on OS with .NET 4.0+ already installed
Invoke-LTServiceCommand
SYNOPSIS
This function tells the agent to execute the desired command.
SYNTAX
DESCRIPTION
This function will allow you to execute all known commands against an agent.
PARAMETERS
-Command <String[]>
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.2
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 2/2/2018
Purpose/Change: Initial script development
Thanks: Gavin Stone, for finding the command list
Update Date: 2/8/2018
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/21/2018
Purpose/Change: Removed ErrorAction Override
New-LTServiceBackup
SYNOPSIS
This function will backup all the reg keys to 'HKLM\SOFTWARE\LabTechBackup' This will also backup those files to "$((Get-LTServiceInfo).BasePath)Backup"
SYNTAX
NOTES
Version: 1.4
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 5/11/2017
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 6/7/2017
Purpose/Change: Updated error handling.
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable.
Update Date: 3/21/2017
Purpose/Change: Added additional Debug Output
Redo-LTService
SYNOPSIS
This function will reinstall the LabTech agent from the machine.
SYNTAX
DESCRIPTION
This script will attempt to pull all current settings from machine and issue an 'Uninstall-LTService', 'Install-LTService' with gathered information. If the function is unable to find the settings it will ask for needed parameters.
PARAMETERS
-Server <String[]>
This is the URL to your LabTech server.
Example: https://lt.domain.com
This is used to download the installation and removal utilities.
If no server is provided the uninstaller will use Get-LTServiceInfo to get the server address.
If it is unable to find LT currently installed it will try Get-LTServiceInfoBackup
-ServerPassword <String>
-LocationID <String>
The LocationID of the location that you want the agent in
example: 555
-Backup <SwitchParameter>
This will run a New-LTServiceBackup command before uninstalling.
-Hide <SwitchParameter>
Will remove from add-remove programs
-Rename <String>
This will call Rename-LTAddRemove to rename the install in Add/Remove Programs
-Force <SwitchParameter>
This will force operation on an agent detected as a probe.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.5
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 6/8/2017
Purpose/Change: Update to support user provided settings for -Server, -Password, -LocationID.
Update Date: 6/10/2017
Purpose/Change: Updates for pipeline input, support for multiple servers
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable.
Update Date: 3/12/2018
Purpose/Change: Added detection of "Probe" enabled agent.
Added support for -Force parameter to override probe detection.
Updated support of -WhatIf parameter.
Rename-LTAddRemove
SYNOPSIS
This function renames the LabTech install as shown in the Add/Remove Programs list.
SYNTAX
DESCRIPTION
This function will change the value of the DisplayName registry key to effect Add/Remove Programs list.
PARAMETERS
-Name <Object>
This is the Name for the LabTech Agent as displayed in the list of installed software.
-PublisherName <String>
This is the Name for the Publisher of the LabTech Agent as displayed in the list of installed software.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.2
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 5/14/2017
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/12/2018
Purpose/Change: Support for ShouldProcess to enable -Confirm and -WhatIf.
Reset-LTService
SYNOPSIS
This function will remove local settings on the agent.
SYNTAX
DESCRIPTION
This function can remove some of the agents local settings. ID, MAC, LocationID The function will stop the services, make the change, then start the services. Resetting all of these will force the agent to check in as a new agent. If you have MAC filtering enabled it should check back in with the same ID. This function is useful for duplicate agents.
PARAMETERS
-ID <SwitchParameter>
This will reset the AgentID of the computer
-Location <SwitchParameter>
This will reset the LocationID of the computer
-MAC <SwitchParameter>
This will reset the MAC of the computer
-Force <SwitchParameter>
This will force operation on an agent detected as a probe.
-NoWait <SwitchParameter>
This will skip the ending health check for the reset process.
The function will exit once the values specified have been reset.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.3
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/12/2018
Purpose/Change: Added detection of "Probe" enabled agent.
Added support for -Force parameter to override probe detection. Added support for -WhatIf.
Added support for -NoWait paramter to bypass agent health check.
Update Date: 3/21/2018
Purpose/Change: Removed ErrorAction Override
Restart-LTService
SYNOPSIS
This function will restart the LabTech Services.
SYNTAX
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.3
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/13/2018
Purpose/Change: Added additional debugging output, support for ShouldProcess (-Confirm, -WhatIf)
Update Date: 3/21/2018
Purpose/Change: Removed ErrorAction Override
Set-LTLogging
SYNOPSIS
This function will set the logging level of the LabTech service.
SYNTAX
PARAMETERS
-Normal <SwitchParameter>
-Verbose <SwitchParameter>
NOTES
Version: 1.1
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Set-LTProxy
SYNOPSIS
This function configures module functions to use the specified proxy configuration for all operations as long as the module remains loaded.
SYNTAX
DESCRIPTION
This function will set or clear Proxy settings needed for function and agent operations. If an agent is already installed, this function will set the ProxyUsername, ProxyPassword, and ProxyServerURL values for the Agent. NOTE: Agent Services will be restarted for changes (if found) to be applied.
PARAMETERS
-ProxyServerURL <String>
This is the URL and Port to assign as the ProxyServerURL for Module
operations during this session and for the Installed Agent (if present).
Example: Set-LTProxy -ProxyServerURL 'proxyhostname.fqdn.com'
Example: Set-LTProxy -ProxyServerURL 'proxyhostname.fqdn.com:8080'
This parameter may be used with the additional following parameters:
ProxyUsername, ProxyPassword, EncodedProxyUsername, EncodedProxyPassword
-ProxyUsername <String>
This is the plain text Username for Proxy operations.
Example: Set-LTProxy -ProxyServerURL 'proxyhostname.fqdn.com:8080' -ProxyUsername 'Test-User' -ProxyPassword 'SomeFancyPassword'
-ProxyPassword <String>
This is the plain text Password for Proxy operations.
-EncodedProxyUsername <String>
This is the encoded Username for Proxy operations. The parameter must be
encoded with the Agent Password. This Parameter will be decoded using the
Agent Password, and the decoded string will be configured.
NOTE: Reinstallation of the Agent will generate a new agent password.
Example: Set-LTProxy -ProxyServerURL 'proxyhostname.fqdn.com:8080' -EncodedProxyUsername '1GzhlerwMy0ElG9XNgiIkg==' -EncodedProxyPassword 'Duft4r7fekTp5YnQL9F0V9TbP7sKzm0n'
-EncodedProxyPassword <String>
This is the encoded Password for Proxy operations. The parameter must be
encoded with the Agent Password. This Parameter will be decoded using the
Agent Password, and the decoded string will be configured.
NOTE: Reinstallation of the Agent will generate a new password.
-DetectProxy <SwitchParameter>
This parameter attempts to automatically detect the system Proxy settings
for Module operations during this session. Discovered settings will be
assigned to the Installed Agent (if present).
Example: Set-LTProxy -DetectProxy
This parameter may not be used with other parameters.
-ResetProxy <SwitchParameter>
This parameter clears any currently defined Proxy Settings for Module
operations during this session. Discovered settings will be assigned
to the Installed Agent (if present).
Example: Set-LTProxy -ResetProxy
This parameter may not be used with other parameters.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.1
Author: Darren White
Creation Date: 1/24/2018
Purpose/Change: Initial function development
Show-LTAddRemove
SYNOPSIS
This function shows the LabTech install in the add/remove programs list.
SYNTAX
DESCRIPTION
This function will rename the HiddenDisplayName registry key to show it in the add/remove programs list. If there is not HiddenDisplayName key the function will import a new entry.
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.2
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/12/2018
Purpose/Change: Support for ShouldProcess. Added Registry Paths to be checked.
Modified hiding method to be compatible with standard software controls.
Start-LTService
SYNOPSIS
This function will start the LabTech Services.
SYNTAX
DESCRIPTION
This function will verify that the LabTech services are present. It will then check for any process that is using the LTTray port (Default 42000) and kill it. Next it will start the services.
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.5
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 5/11/2017
Purpose/Change: added check for non standard port number and set services to auto start
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 12/14/2017
Purpose/Change: Will increment the tray port if a conflict is detected.
Update Date: 2/1/2018
Purpose/Change: Added support for -WhatIf. Added Service Control Command to request agent check-in immediately after startup.
Update Date: 3/21/2018
Purpose/Change: Removed ErrorAction Override
Stop-LTService
SYNOPSIS
This function will stop the LabTech Services.
SYNTAX
DESCRIPTION
This function will verify that the LabTech services are present then attempt to stop them. It will then check for any remaining LabTech processes and kill them.
PARAMETERS
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
NOTES
Version: 1.3
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 3/12/2018
Purpose/Change: Updated Support for ShouldProcess to enable -Confirm and -WhatIf parameters.
Update Date: 3/21/2018
Purpose/Change: Removed ErrorAction Override
Test-LTPorts
SYNOPSIS
This function will attempt to connect to all required TCP ports.
SYNTAX
DESCRIPTION
The function will confirm the LTTray port is available locally. It will then test required TCP ports to the Server.
PARAMETERS
-Server <String[]>
This is the URL to your LabTech server.
Example: https://lt.domain.com
If no server is provided the function will use Get-LTServiceInfo to
get the server address. If it is unable to find LT currently installed
it will try calling Get-LTServiceInfoBackup.
-TrayPort <Int32>
This is the port LTSvc.exe listens on for communication with LTTray.
It will be checked to verify it is available. If not provided the
default port will be used (42000).
-Quiet <SwitchParameter>
This will return a boolean for connectivity status to the Server
NOTES
Version: 1.6
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 5/11/2017
Purpose/Change: Quiet feature
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 6/10/2017
Purpose/Change: Updates for pipeline input, support for multiple servers
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable.
Update Date: 8/29/2017
Purpose/Change: Added Server Address Format Check
Update Date: 2/13/2018
Purpose/Change: Added -TrayPort parameter.
Uninstall-LTService
SYNOPSIS
This function will uninstall the LabTech agent from the machine.
SYNTAX
DESCRIPTION
This function will stop all the LabTech services. It will then download the current agent install MSI and issue an uninstall command. It will then download and run Agent_Uninstall.exe from the LabTech server. It will then scrub any remaining file/registry/service data.
PARAMETERS
-Server <String[]>
This is the URL to your LabTech server.
Example: https://lt.domain.com
This is used to download the uninstall utilities.
If no server is provided the uninstaller will use Get-LTServiceInfo to get the server address.
-Backup <SwitchParameter>
This will run a 'New-LTServiceBackup' before uninstalling.
-Force <SwitchParameter>
This will force operation on an agent detected as a probe.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.5
Author: Chris Taylor
Website: labtechconsulting.com
Creation Date: 3/14/2016
Purpose/Change: Initial script development
Update Date: 6/1/2017
Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2
Update Date: 6/10/2017
Purpose/Change: Updates for pipeline input, support for multiple servers
Update Date: 6/24/2017
Purpose/Change: Update to detect Server Version and use updated URL format for LabTech 11 Patch 13.
Update Date: 8/24/2017
Purpose/Change: Update to use Clear-Variable. Modifications to Folder and Registry Delete steps. Additional Debugging.
Update Date: 1/26/2017
Purpose/Change: Added support for Proxy Server for Download and Installation steps.
Update Date: 3/12/2018
Purpose/Change: Added detection of "Probe" enabled agent.
Added support for -Force parameter to override probe detection.
Updated support of -WhatIf parameter.
Added minimum size requirement for agent installer to detect and skip a bad file download.
Update-LTService
SYNOPSIS
This function will manually update the LabTech agent to the requested version.
SYNTAX
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.
-WhatIf <SwitchParameter>
-Confirm <SwitchParameter>
EXAMPLES
EXAMPLE 1
EXAMPLE 2
NOTES
Version: 1.0
Author: Darren White
Creation Date: 8/28/2018
Purpose/Change: Initial function development