Deletes an operating system from an application profile.
Description
The Remove-SCOperatingSystem cmdlet deletes an operating system from an application profile.
For more information about Remove-SCOperatingSystem, type: "Get-Help Remove-SCOperatingSystem -online".
Parameters
ApplicationProfile
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies an application profile object.
OperatingSystem
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies the type of operating system for a virtual machine. To list the names of all available operating systems in VMM, type: "Get-SCOperatingSystem".
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.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Remove all operating systems from a
specified application profile
The first command gets the application profile object named SvcWebAppProfile01 and stores it in the $AppProfile variable.
The second command gets the first operating system object stored in the OperatingSystems property of the application profile stored in $AppProfile and stores the object in the $OS variable.
The last command removes the operating system stored in $OS from the application profile stored in $AppProfile.