Get-DMDiscoveryScanDefinition
SYNOPSIS
Get scan definitions and their details.
SYNTAX
GetAllScanDefinitions (Default)
Get-DMDiscoveryScanDefinition [-search <String>] [-sort <String>] [-sortDirection <String>] [-type <String>]
[-recurrenceType <String>] [-lastInstanceStatus <String>] [-extendedDetails <Boolean>] [-State <String>]
[<CommonParameters>]
byID
Get-DMDiscoveryScanDefinition -id <String> [<CommonParameters>]
DESCRIPTION
Get scan definitions and their details.
EXAMPLES
Example 1
PS C:\> Get-DMDiscoveryScanDefinition -id d571cdfgdfg8
Returns the details of the specified scan definition.
PARAMETERS
-id
the id of the scan definition to retrieve
Type: String
Parameter Sets: byID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-search
scan definition search term
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-sort
Property to sort the returned list of scan definitions by.
Valid values are creationTime, updateTime, name, type & recurrenceType.
lastInstanceStatus & lastInstanceCreationTime are also valid values, but only when extendedDetails is set to $true.
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-type
scan definition type
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-recurrenceType
scan definition recurrenceType
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-lastInstanceStatus
scan definition lastInstanceStatus
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-extendedDetails
whether or not to return extendedDetails of scan definition
Type: Boolean
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-sortDirection
Direction to sort the returned list of scan definitions by, when used with the sort parameter.
Valid values are asc & desc. Defaults to asc if sort is specified but sortDirection is not.
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-State
Whether the scan is in an active or inactive state.
Type: String
Parameter Sets: GetAllScanDefinitions
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.