New-MgBetaDeviceManagementManagedDeviceCleanupRule

Create new navigation property to managedDeviceCleanupRules for deviceManagement

Syntax

New-MgBetaDeviceManagementManagedDeviceCleanupRule
   [-ResponseHeadersVariable <String>]
   [-AdditionalProperties <Hashtable>]
   [-Description <String>]
   [-DeviceCleanupRulePlatformType <DeviceCleanupRulePlatformType>]
   [-DeviceInactivityBeforeRetirementInDays <Int32>]
   [-DisplayName <String>]
   [-Id <String>]
   [-Headers <IDictionary>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgBetaDeviceManagementManagedDeviceCleanupRule
   -BodyParameter <IMicrosoftGraphManagedDeviceCleanupRule>
   [-ResponseHeadersVariable <String>]
   [-Headers <IDictionary>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create new navigation property to managedDeviceCleanupRules for deviceManagement

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

Define the rule when the admin wants the devices to be cleaned up. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphManagedDeviceCleanupRule
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

-Description

Indicates the description for the device clean up rule.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DeviceCleanupRulePlatformType

Define the platform type for which the admin wants to create the device clean up rule

Type:DeviceCleanupRulePlatformType
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DeviceInactivityBeforeRetirementInDays

Indicates the number of days when the device has not contacted Intune. Valid values 0 to 2147483647

Type:Int32
Position:Named
Default value:0
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Indicates the display name of the device cleanup rule.

Type:String
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

-Id

The unique identifier for an entity. Read-only.

Type:String
Position:Named
Default value:None
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

-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.IMicrosoftGraphManagedDeviceCleanupRule

System.Collections.IDictionary

Outputs

Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphManagedDeviceCleanupRule

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.

BODYPARAMETER <IMicrosoftGraphManagedDeviceCleanupRule>: Define the rule when the admin wants the devices to be cleaned up.

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Id <String>]: The unique identifier for an entity. Read-only.
  • [Description <String>]: Indicates the description for the device clean up rule.
  • [DeviceCleanupRulePlatformType <DeviceCleanupRulePlatformType?>]: Define the platform type for which the admin wants to create the device clean up rule
  • [DeviceInactivityBeforeRetirementInDays <Int32?>]: Indicates the number of days when the device has not contacted Intune. Valid values 0 to 2147483647
  • [DisplayName <String>]: Indicates the display name of the device cleanup rule.