Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender
Syntax
ScanExpanded (Default)
Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender
-ManagedDeviceId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-QuickScan]
[-Headers <IDictionary>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Scan
Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender
-ManagedDeviceId <String>
-BodyParameter <IPathsByrzneDevicemanagementManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ScanViaIdentityExpanded
Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender
-InputObject <IDeviceManagementIdentity>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-QuickScan]
[-Headers <IDictionary>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ScanViaIdentity
Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender
-InputObject <IDeviceManagementIdentity>
-BodyParameter <IPathsByrzneDevicemanagementManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Not yet documented
Permissions
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
DeviceManagementManagedDevices.PrivilegedOperations.All,
Delegated (personal Microsoft account)
Not supported
Application
DeviceManagementManagedDevices.PrivilegedOperations.All,
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.DeviceManagement
$params = @{
quickScan = $true
}
Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender -ManagedDeviceId $managedDeviceId -BodyParameter $params
This example shows how to use the Invoke-MgScanDeviceManagementManagedDeviceWindowsDefender Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Parameter properties
Type: Hashtable
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ScanExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ScanViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-BodyParameter
To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Parameter properties
Type: IPathsByrzneDevicemanagementManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Scan
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
ScanViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Optional headers that will be added to the request.
Type: IDictionary
Default value: None
Supports wildcards: False
DontShow: False
(All)
Position: Named
Mandatory: False
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: IDeviceManagementIdentity
Default value: None
Supports wildcards: False
DontShow: False
ScanViaIdentityExpanded
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
ScanViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-ManagedDeviceId
The unique identifier of managedDevice
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ScanExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Scan
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PassThru
Returns true when the command succeeds
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-QuickScan
Not yet documented
Permissions
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
DeviceManagementManagedDevices.PrivilegedOperations.All,
Delegated (personal Microsoft account)
Not supported
Application
DeviceManagementManagedDevices.PrivilegedOperations.All,
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Parameter sets
ScanExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ScanViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Optional Response Headers Variable.
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: RHV
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Microsoft.Graph.PowerShell.Models.IDeviceManagementIdentity
Microsoft.Graph.PowerShell.Models.IPathsByrzneDevicemanagementManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema
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.
BODYPARAMETER <IPathsByrzneDevicemanagementManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema>
: .
[(Any) <Object>]
: This indicates any property can be added to this object.
[QuickScan <Boolean?>]
:
INPUTOBJECT <IDeviceManagementIdentity>
: Identity Parameter
[AppLogCollectionRequestId <String>]
: The unique identifier of appLogCollectionRequest
[BrowserSharedCookieId <String>]
: The unique identifier of browserSharedCookie
[BrowserSiteId <String>]
: The unique identifier of browserSite
[BrowserSiteListId <String>]
: The unique identifier of browserSiteList
[DetectedAppId <String>]
: The unique identifier of detectedApp
[DeviceCategoryId <String>]
: The unique identifier of deviceCategory
[DeviceComplianceActionItemId <String>]
: The unique identifier of deviceComplianceActionItem
[DeviceComplianceDeviceStatusId <String>]
: The unique identifier of deviceComplianceDeviceStatus
[DeviceCompliancePolicyAssignmentId <String>]
: The unique identifier of deviceCompliancePolicyAssignment
[DeviceCompliancePolicyId <String>]
: The unique identifier of deviceCompliancePolicy
[DeviceCompliancePolicySettingStateSummaryId <String>]
: The unique identifier of deviceCompliancePolicySettingStateSummary
[DeviceCompliancePolicyStateId <String>]
: The unique identifier of deviceCompliancePolicyState
[DeviceComplianceScheduledActionForRuleId <String>]
: The unique identifier of deviceComplianceScheduledActionForRule
[DeviceComplianceSettingStateId <String>]
: The unique identifier of deviceComplianceSettingState
[DeviceComplianceUserStatusId <String>]
: The unique identifier of deviceComplianceUserStatus
[DeviceConfigurationAssignmentId <String>]
: The unique identifier of deviceConfigurationAssignment
[DeviceConfigurationDeviceStatusId <String>]
: The unique identifier of deviceConfigurationDeviceStatus
[DeviceConfigurationId <String>]
: The unique identifier of deviceConfiguration
[DeviceConfigurationStateId <String>]
: The unique identifier of deviceConfigurationState
[DeviceConfigurationUserStatusId <String>]
: The unique identifier of deviceConfigurationUserStatus
[DeviceLogCollectionResponseId <String>]
: The unique identifier of deviceLogCollectionResponse
[DeviceManagementTroubleshootingEventId <String>]
: The unique identifier of deviceManagementTroubleshootingEvent
[LocalizedNotificationMessageId <String>]
: The unique identifier of localizedNotificationMessage
[MalwareStateForWindowsDeviceId <String>]
: The unique identifier of malwareStateForWindowsDevice
[ManagedDeviceId <String>]
: The unique identifier of managedDevice
[MobileAppTroubleshootingEventId <String>]
: The unique identifier of mobileAppTroubleshootingEvent
[NotificationMessageTemplateId <String>]
: The unique identifier of notificationMessageTemplate
[SecretReferenceValueId <String>]
: Usage: secretReferenceValueId='{secretReferenceValueId}'
[SettingStateDeviceSummaryId <String>]
: The unique identifier of settingStateDeviceSummary
[WindowsDeviceMalwareStateId <String>]
: The unique identifier of windowsDeviceMalwareState
[WindowsInformationProtectionAppLearningSummaryId <String>]
: The unique identifier of windowsInformationProtectionAppLearningSummary
[WindowsInformationProtectionNetworkLearningSummaryId <String>]
: The unique identifier of windowsInformationProtectionNetworkLearningSummary
[WindowsMalwareInformationId <String>]
: The unique identifier of windowsMalwareInformation