Invoke-SCPROTip

Performs the action recommended by a PRO tip.

Syntax

Invoke-SCPROTip [-PROTip] <PROTip> [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously]
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Invoke-SCPROTip cmdlet performs the action recommended by a Performance and Resource Optimization (PRO) tip. You can use this cmdlet to manually invoke the action recommended by a PRO tip that is not set to be implemented automatically.

Examples

Example 1: Invoke the first active PRO tip

PS C:\> $PROTips = Get-SCPROTip
PS C:\> Invoke-SCPROTip -PROTip $PROTips[0]

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

The second command implements the suggested action for the first PRO tip stored in $PROTips (designated by the [0]).

Parameters

-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
-PROTip

Specifies a PRO tip object.

Type:PROTip
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
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:Guid
Required:False
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
-VMMServer

Specifies a 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.