Skip to main content

SWM - Software Configuration - Script - Microsoft Office 365 - Update

Summary

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

Sample Run

Sample Run
Set force to 1 to force Microsoft Office applications to close during the update process.

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.

User Parameters

NameExampleDescription
Force1 or 01 will force the shutdown of Office applications during the update process. 0 does not force the shutdown of Office applications during the process.

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