< Back

Repair-AutomateAgent

Sat Jan 11, 2020 2:09 am

NAME Repair-AutomateAgent



SYNOPSIS

Takes changed detected in Compare-AutomateControlStatus and performs a specified repair on them





SYNTAX

Repair-AutomateAgent [[-Action] <String>] [[-BatchSize] <Int32>] [[-LTPoShURI] <String>]

[[-AutomateControlStatusObject] <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Takes changed detected in Compare-AutomateControlStatus and performs a specified repair on them





PARAMETERS

-Action <String>

Takes either Update, Restart, Reinstall or Check



Required? false

Position? 1

Default value Check

Accept pipeline input? false

Accept wildcard characters? false



-BatchSize <Int32>

When multiple jobs are run, they run in Parallel. Batch size determines how many jobs can run at once. Default

is 10



Required? false

Position? 2

Default value 10

Accept pipeline input? false

Accept wildcard characters? false



-LTPoShURI <String>

If you do not wish to use the LT Posh module on GitHub you can use your own link to the LTPosh Module with

this parameter



Required? false

Position? 3

Default value $Script:LTPoShURI

Accept pipeline input? false

Accept wildcard characters? false



-AutomateControlStatusObject <Object>

Object taken from the Pipeline from Compare-AutomateControlStatus



Required? false

Position? 4

Default value

Accept pipeline input? true (ByValue)

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



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Compare-AutomateControlStatus Object





OUTPUTS

Object containing result of job(s)





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-AutomateComputer -Online $False | Compare-AutomateControlStatus | Repair-AutomateAgent -Action Check













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-AutomateComputer -Online $False | Compare-AutomateControlStatus | Repair-AutomateAgent -Action Restart















RELATED LINKS