Update-SCSMPortalSoftwarePackage
Updates the properties of software packages that are configured for deployment in the Service Manager Self-Service Portal.
Parameter Set: Default
Update-SCSMPortalSoftwarePackage [-SoftwarePackage] <EnterpriseManagementInstance[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
The Update-SCSMPortalSoftwarePackage cmdlet updates the properties of software packages that are configured for deployment in the Service Manager Self-Service Portal. Currently, the only property that you can update is Publish, which you can set to $True or to $False.
Indicates that this cmdlet returns the software packages that it updates. You can pass this object to other cmdlets.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies an object that represents a software package to update.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
Microsoft.EnterpriseManagement.Core.Cmdlets.Instances.EnterpriseManagementInstance
You can pipe an instance of a portal software package object to the SoftwarePackage parameter. To obtain a portal software package object, use the Get-SCSMPortalSoftwarePackage cmdlet.
The output type is the type of the objects that the cmdlet emits.
- This cmdlet does not generate any output.
This command sets the Publish property of all software packages to $False. This setting causes all software packages to become unavailable for deployment.
PS C:\>Get-SCSMPortalSoftwarePackage | ForEach{ $_.Publish = $False; $_ } | Update-SCSMPortalSoftwarePackage