Lock-DPMLibraryIEPort

Locks the I/E port for a DPM library and loads the media present in the I/E port.

Syntax

Lock-DPMLibraryIEPort [-DPMLibrary] <Library> [-Async]
 [-JobStateChangedEventHandler <JobStateChangedEventHandler>] [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Lock-DPMLibraryIEPort cmdlet locks the insert/eject (I/E) port for a System Center 2016 - Data Protection Manager (DPM) library and loads the media present in the I/E port into the slot.

Examples

Example 1: Lock an I/E port

PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "DPMServer07"
PS C:\> Lock-DPMLibraryDoor -DPMLibrary $DpmLibrary

The first command uses the Get-DPMLibrary cmdlet to get the library for the named server, and then stores the library object in the $DpmLibrary variable.

The second command locks the object stored in $DpmLibrary.

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DPMLibrary

Specifies a DPM library object for which this cmdlet locks the I/E port. To obtain a DPM library object, use the Get-DPMLibrary cmdlet.

Type:Library
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
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
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value: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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False