Skip to main content

Invoke-VolumeOptimization

Summary

This script runs the agnostic EPM - Windows Configuration - Agnostic - Invoke-VolumeOptimization.

Sample Run

Sample Run
This will run a PowerShell equivalent of defrag on the target machine.

Dependencies

Variables

NameDescription
TFailUsed in ticketing on failure
TSuccessUsed in ticketing on success
TicketSummaryThe summary of any ticket created
TicketBodyThe body of any created ticket.

Global Parameters

NameExampleRequiredDescription
TicketCreationCategory167FalseThe ticket creation category to be used with any created ticket.
EnableTicketingFailure, Success, Failure, Success or emptyFalseFailure will enable ticketing on failure; Success will enable ticketing on success; Failure, Success will enable ticketing on both; Blank will disable ticketing.

User Parameters

NameExampleRequiredDescription
DrivesCTrueThe drives you wish to defrag

Process

Please reference the agnostic document for the process.

Output

  • Ticket (Please see section below)
  • Script Log

Ticketing

Note to ProVal Team: Ticket subject lines should be short and simple. The body of the ticket should provide a detailed explanation of why a ticket was generated and, ideally, what the next steps should be when a user is looking at the ticket.

If the script/monitor is intended to create tickets, please note the Subject and Body of the ticket below. Include an example ticket if possible.

Subject: %ScriptName% Results for %ComputerName%: %When%

Body: %scriptname% ran on %computername% at %when%
%computername%'s results:
@psout@

Ticket Example