< Back

New-DeviceManagement_DeviceCompliancePolicies_DeviceStatuses

Sat Jan 18, 2020 12:22 pm

NAME New-DeviceManagement_DeviceCompliancePolicies_DeviceStatuses



SYNOPSIS

Creates a "microsoft.graph.deviceComplianceDeviceStatus" object.





SYNTAX

New-DeviceManagement_DeviceCompliancePolicies_DeviceStatuses -deviceCompliancePolicyId <string>

[-complianceGracePeriodExpirationDateTime <DateTimeOffset>] [-deviceDisplayName <string>] [-deviceModel <string>]

[-lastReportedDateTime <DateTimeOffset>] [-status <string>] [-userName <string>] [-userPrincipalName <string>]

[<CommonParameters>]



New-DeviceManagement_DeviceCompliancePolicies_DeviceStatuses -deviceCompliancePolicyId <string> -ODataType

<string> [-complianceGracePeriodExpirationDateTime <DateTimeOffset>] [-deviceDisplayName <string>] [-deviceModel

<string>] [-lastReportedDateTime <DateTimeOffset>] [-status <string>] [-userName <string>] [-userPrincipalName

<string>] [<CommonParameters>]





DESCRIPTION

Adds a "microsoft.graph.deviceComplianceDeviceStatus" object to the "deviceStatuses" collection.



List of DeviceComplianceDeviceStatus.



Graph call: POST ~/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicyId}/deviceStatuses





PARAMETERS

-deviceCompliancePolicyId <string>

A required ID for referencing a "microsoft.graph.deviceCompliancePolicy" object in the

"deviceCompliancePolicies" collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-deviceDisplayName <string>

The "deviceDisplayName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Device name of the DevicePolicyStatus.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-userName <string>

The "userName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The User Name that is being reported



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-deviceModel <string>

The "deviceModel" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The device model that is being reported



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-complianceGracePeriodExpirationDateTime <DateTimeOffset>

The "complianceGracePeriodExpirationDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The DateTime when device compliance grace period expires



Required? false

Position? named

Default value 1/1/0001 12:00:00 AM +00:00

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-status <string>

The "status" property, of type "microsoft.graph.complianceStatus".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Compliance status of the policy report.



Valid values: 'unknown', 'notApplicable', 'compliant', 'remediated', 'nonCompliant', 'error', 'conflict',

'notAssigned'



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-lastReportedDateTime <DateTimeOffset>

The "lastReportedDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Last modified date time of the policy report.



Required? false

Position? named

Default value 1/1/0001 12:00:00 AM +00:00

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-userPrincipalName <string>

The "userPrincipalName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



UserPrincipalName.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ODataType <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-@odata.type <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



This is an alias of the ODataType parameter.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

A required ID for referencing a "microsoft.graph.deviceCompliancePolicy" object in the

"deviceCompliancePolicies" collection.



System.String

The "deviceDisplayName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Device name of the DevicePolicyStatus.



System.String

The "userName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The User Name that is being reported



System.String

The "deviceModel" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The device model that is being reported



System.DateTimeOffset

The "complianceGracePeriodExpirationDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



The DateTime when device compliance grace period expires



System.String

The "status" property, of type "microsoft.graph.complianceStatus".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Compliance status of the policy report.



Valid values: 'unknown', 'notApplicable', 'compliant', 'remediated', 'nonCompliant', 'error', 'conflict',

'notAssigned'



System.DateTimeOffset

The "lastReportedDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



Last modified date time of the policy report.



System.String

The "userPrincipalName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceComplianceDeviceStatus" type.



UserPrincipalName.



System.String

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.





OUTPUTS





RELATED LINKS

GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK