Remove-SCSQLProfile

Removes a SQL Server profile.

Description

The Remove-SCSQLProfile cmdlet removes a SQL Server profile from System Center Virtual Machine Manager (VMM).

For more information about Remove-SCSQLProfile, type: "Get-Help Remove-SCSQLProfile -online".

Parameters

SQLProfile

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a SQL Server profile object.

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

1: Remove a SQL Server profile.
PS C:\> $SQLProfile = Get-SCSQLProfile -Name "SQLProfile01"
PS C:\> Remove-SCSQLProfile -SQLProfile $SQLProfile
The first command gets the SQL Server profile object named SQLProfile01 and stores the object in the $SQLProfile variable.

The second command removes the SQL Server profile object stored in $SQLProfile from VMM.

See Also