Set-SCPROTip

Sets the status of a PRO tip.

Syntax

Set-SCPROTip [-ActionDetails <String>] [-ActionDetailsOpsMgrString <String[]>] [-ActionScript <String>]
 [-ActionSummary <String>] [-ActionSummaryOpsMgrString <String[]>] [-JobVariable <String>]
 [-LastError <String>] [-LastErrorOpsMgrString <String[]>] -PROTipID <String> [-RunAsynchronously]
 [-TipStatus <String>] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Set-SCPROTip cmdlet sets the status of a Performance and Resource Optimization (PRO) tip object. This cmdlet, which is called by PRO tip implementation actions and is for use in building PRO Packs, is used by Virtual Machine Manager (VMM) to update the status of a PRO tip while performing the action recommended by the PRO tip. You can use this cmdlet to manually update the status of PRO tips.

Examples

Example 1: Set the status of a PRO tip

PS C:\> $PROTips = Get-SCPROTip
PS C:\> Set-SCPROTip -PROTipID $PROTips[0].Id -TipStatus Running

The first command gets all active PRO tip objects from the VMM database and stores the objects in the $AllPROTips object array.

The last command updates the first tip stored in $PROTips (as designated by the [0]) to the status Running.

Parameters

-ActionDetails

Provides a detailed description of what implementing this PRO tip will do.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ActionDetailsOpsMgrString

Specifies an array of strings used to provide translated action details text. The first element of the array should be the GUID of the Operations Manager string and the following elements should be the parameters for string formatting.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ActionScript

Specifies the script that will run by implementing this PRO tip.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ActionSummary

Provides a summary description of what implementing this PRO tip will do.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ActionSummaryOpsMgrString

Specifies an array of strings used to provide translated action summary text. The first element of the array should be the GUID of the Operations Manager string and the following elements should be the parameters for string formatting.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LastError

Specifies the error text of a runtime error from a PRO tip script.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LastErrorOpsMgrString

Specifies an array of strings used to provide translated error text. The first element of the array should be the GUID of the Operations Manager string and the following elements should be the parameters for string formatting.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TipStatus

Specifies the current status of a PRO tip object. The acceptable values for this parameter are:

- Active. The user can invoke the tip's recommended action.

  • Initialized. The tip has been invoked; any incomplete jobs are queued.
  • Auto.
  • Running. The tip has been invoked; its jobs are running.
  • Resolved. The implementation of the tip has completed successfully.
  • Failed. The implementation of the tip has failed.
  • Dismissed. The user has chosen to ignore the tip.
  • Closed.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

PROTip

This cmdlet returns a **PROTip** object.