Start-DPMLibraryRescan

Starts a scan to identify new libraries and update existing libraries.

Syntax

Start-DPMLibraryRescan [[-DPMServerName] <String>] [-Full]
 [-JobStateChangedEventHandler <JobStateChangedEventHandler>] [<CommonParameters>]
Start-DPMLibraryRescan [[-DPMServerName] <String>] [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
 [-Quick] [<CommonParameters>]
Start-DPMLibraryRescan [[-DPMServerName] <String>] [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
 [-RefreshOnly] [<CommonParameters>]

Description

The Start-DPMLibraryRescan cmdlet starts a scan for a System Center 2016 - Data Protection Manager (DPM) server to identify new libraries and stand-alone tape drives, and to update information for existing libraries. You can select one of the following parameters:

- Full. The cmdlet checks for new libraries and stand-alone tape drives and refreshes all libraries and drives.

  • Quick. The cmdlet checks for new libraries and stand-alone tape drives.
  • RefreshOnly. The cmdlet refreshes known drives.

    If you do not specify any of these parameters, the cmdlet performs a full scan.

Examples

Example 1: Perform a full rescan

PS C:\>Start-DPMLibraryRescan -DPMServerName "DPMServer07" -Full

This command starts a full rescan of the libraries on the DPMserver named DPMServer07.

Parameters

-DPMServerName

Specifies the name of a DPM server that this cmdlet scans.

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Full

Indicates that the cmdlet starts a full library rescan.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobStateChangedEventHandler

Specifies an event handler for Job.StateChanged events. Use this parameter to build a graphical user interface based on cmdlets. Do not use this parameter in the DPM Management Shell.

Type:JobStateChangedEventHandler
Aliases:Handler
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Quick

Indicates that the cmdlet starts a quick library rescan.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RefreshOnly

Indicates that the cmdlet starts a refresh library scan.

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

Outputs

Job