Persistent Instruction management cmdlets

Persistent Instruction management cmdlets allow you to perform various tasks associated with 1E Platform persistent instructions.

Get-1EPersistentInstruction -Id <id>

Given a persistent instruction Id, this cmdlet returns the persistent instruction. An exception is thrown if the instruction Id is not valid.

Get-1EPersistentInstructionHistory -ItemCount <count>

This cmdlet retrieves all or part of the persistent instruction history. It specifies the number of items to return (otherwise, all history is returned). History is sorted by descending date/time, so an item count of 1 will always return the most recent item in history.

Stop-1EPersistentInstruction -Id <id>

This cmdlet stops (terminates) an active instruction. An exception is thrown if the instruction Id is not valid.

Invoke-1EPersistentInstruction -Instruction <instructionName> -ManagementGroupIds <ids> | -ManagementGroupUsableIds <ids> [-PromptDefaults <true|false>] [-RefreshInterval <interval>]

This cmdlet invokes a persistent instruction. Platform instructions have their own parameters. These have to be filled out when prompted.

ManagementGroupIds or ManagementGroupUsableIds have to be provided.

The instruction refresh interval has to be specified in minutes. The instruction will be scheduled to execute repeatedly.

PromptDefaults specifies that instruction parameters with default values will be prompted.