Skip to main content

Microsoft Office 365 - Update

Summary

This script is an Automate Wrapper to run the Agnostic Update-Office script.

Sample Run

Sample Run

Dependencies

Variables

Document the various variables in the script. Delete any section that is not relevant to your script.

NameDescription
WorkingDirectoryStandard Template Variable.
PS1LogStandard Template Variable.
PS1DataLogStandard Template Variable.
PS1ErrorLogStandard Template Variable.
LogContentStandard Template Variable.
QueriedLogNecessary to determine if a warning is present in the log, since the agnostic script sets a warning; selects the last two lines of the log file.
AlertTypeThis sets the alert type, which can be a warning or error.
ErrorMsgThe associated error message for the specific script section.
DataLogContentStandard Template Variable.
TicketSubjectThe subject of the ticket.
TicketBodyThe body of the ticket.

Global Parameters

NameExampleRequiredDescription
ProjectNameUpdate-OfficeTrueThe name of the agnostic script minus the .ps1
TicketOnError0 or 1TrueToggles on/off ticketing on error.
TicketOnWarning0 or 1TrueToggles on/off ticketing on warning.

Output

  • Script log

Ticketing

Ticketing