Remove-MgBetaWindowsUpdatesUpdatableAssetMember
Remove members from an updatableAssetGroup. You can also use the method removeMembersById to remove members.
Syntax
Remove-MgBetaWindowsUpdatesUpdatableAssetMember
-UpdatableAssetId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Assets <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-MgBetaWindowsUpdatesUpdatableAssetMember
-UpdatableAssetId <String>
-BodyParameter <IPaths1Tnhm2YAdminWindowsUpdatesUpdatableassetsUpdatableassetIdMicrosoftGraphWindowsupdatesRemovemembersPostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-MgBetaWindowsUpdatesUpdatableAssetMember
-InputObject <IWindowsUpdatesIdentity>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-Assets <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-MgBetaWindowsUpdatesUpdatableAssetMember
-InputObject <IWindowsUpdatesIdentity>
-BodyParameter <IPaths1Tnhm2YAdminWindowsUpdatesUpdatableassetsUpdatableassetIdMicrosoftGraphWindowsupdatesRemovemembersPostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove members from an updatableAssetGroup. You can also use the method removeMembersById to remove members.
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | WindowsUpdates.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | WindowsUpdates.ReadWrite.All | Not available. |
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.Beta.WindowsUpdates
$params = @{
assets = @(
@{
"@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice"
id = "String (identifier)"
}
)
}
Remove-MgBetaWindowsUpdatesUpdatableAssetMember -UpdatableAssetId $updatableAssetId -BodyParameter $params
This example shows how to use the Remove-MgBetaWindowsUpdatesUpdatableAssetMember Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Assets
. To construct, see NOTES section for ASSETS properties and create a hash table.
Type: | IMicrosoftGraphWindowsUpdatesUpdatableAsset[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IPaths1Tnhm2YAdminWindowsUpdatesUpdatableassetsUpdatableassetIdMicrosoftGraphWindowsupdatesRemovemembersPostRequestbodyContentApplicationJsonSchema |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IWindowsUpdatesIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Returns true when the command succeeds
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UpdatableAssetId
The unique identifier of updatableAsset
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.Beta.PowerShell.Models.IPaths1Tnhm2YAdminWindowsUpdatesUpdatableassetsUpdatableassetIdMicrosoftGraphWindowsupdatesRemovemembersPostRequestbodyContentApplicationJsonSchema
Microsoft.Graph.Beta.PowerShell.Models.IWindowsUpdatesIdentity
System.Collections.IDictionary
Outputs
System.Boolean
Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
ASSETS <IMicrosoftGraphWindowsUpdatesUpdatableAsset- []
>: .
[Id <String>]
: The unique identifier for an entity. Read-only.
BODYPARAMETER <IPaths1Tnhm2YAdminWindowsUpdatesUpdatableassetsUpdatableassetIdMicrosoftGraphWindowsupdatesRemovemembersPostRequestbodyContentApplicationJsonSchema>
: .
[(Any) <Object>]
: This indicates any property can be added to this object.[Assets <IMicrosoftGraphWindowsUpdatesUpdatableAsset-
[]>]
:[Id <String>]
: The unique identifier for an entity. Read-only.
INPUTOBJECT <IWindowsUpdatesIdentity>
: Identity Parameter
[ApplicableContentCatalogEntryId <String>]
: The unique identifier of applicableContent[ApplicableContentDeviceMatchDeviceId <String>]
: The unique identifier of applicableContentDeviceMatch[CatalogEntryId <String>]
: The unique identifier of catalogEntry[CatalogId <String>]
: Usage: catalogID='{catalogID}'[ComplianceChangeId <String>]
: The unique identifier of complianceChange[DaysInPast <Int32?>]
: Usage: daysInPast={daysInPast}[DeploymentId <String>]
: The unique identifier of deployment[EditionId <String>]
: The unique identifier of edition[KbNumber <Int32?>]
: Usage: kbNumber={kbNumber}[KnownIssueId <String>]
: The unique identifier of knownIssue[ProductId <String>]
: The unique identifier of product[ProductRevisionId <String>]
: The unique identifier of productRevision[ResourceConnectionId <String>]
: The unique identifier of resourceConnection[UpdatableAssetId <String>]
: The unique identifier of updatableAsset[UpdatePolicyId <String>]
: The unique identifier of updatePolicy