Start-DPMLibraryInventory
Updated: January 14, 2013
Applies To: System Center 2012 - Data Protection Manager
Start-DPMLibraryInventory
Syntax
Parameter Set: FastInventory Start-DPMLibraryInventory [-DPMLibrary] <Library> [-FastInventory] [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-Confirm] [-WhatIf] [ <CommonParameters>] Parameter Set: DetailedInventory Start-DPMLibraryInventory [-DPMLibrary] <Library> -DetailedInventory [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-Tape <Media[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Start-DPMLibraryInventory cmdlet starts an inventory of the tape in the specified library.
You must specify the FastInventory parameter if you do not want detailed inventory to be performed.
Parameters
-DetailedInventory
Indicates that a detailed inventory must be performed on the specified library. A detailed inventory will mount and read the header of the tape.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-DPMLibrary<Library>
Specify a DPM library object.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-FastInventory
Indicates that a fast inventory must be performed on the specified library. A fast inventory will not read the headers from the tape.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-JobStateChangedEventHandler<JobStateChangedEventHandler>
Indicates that the status of the operation should be displayed to the user. The JobStateChangedEventHandler is used along with the -Async parameter. This is useful when building a GUI using cmdlets. It is not used when working with the DPM Management Shell.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-Tape<Media[]>
Indicates a tape object.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
false |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
false |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- Job
Notes
-
For more information, type "Get-Help Start-DPMLibraryInventory -detailed".
For technical information, type "Get-Help Start-DPMLibraryInventory -full".
Examples
EXAMPLE 1
This command performs a fast inventory of the library on the TestingServer.
PS C:\>$DPMLib = Get-DPMLibrary -DPMServerName "TestingServer"Start-DPMLibraryInventory -DPMLibrary $DPMLib -FastInventory
EXAMPLE 2
This command performs a detailed inventory of the library on TestingServer.
PS C:\>$DPMLib = Get-DPMLibrary -DPMServerName "TestingServer"Start-DPMLibraryInventory -DPMLibrary $DPMLib -DetailedInventory
