New-DPMSearchOption
New-DPMSearchOption
Creates an object that specifies search options for recoverable objects.
構文
Parameter Set: Default
New-DPMSearchOption [-FromRecoveryPoint] <DateTime> [-ToRecoveryPoint] <DateTime> [-SearchDetail] <SearchParameters+SearchForDetail> {FilesFolders | MailboxByAlias | MailboxByDisplayName | WssSite | WssDocuments | ClientVolumes} [-SearchType] <SearchParameters+SearchFilterType> {startsWith | contains | endsWith | exactMatch} [-SearchString] <String> [-Location <String> ] [-Recursive] [ <CommonParameters>]
詳細説明
The New-DPMSearchOption cmdlet creates an object that specifies search options for recoverable objects that System Center 2012 – Data Protection Manager (DPM) manages. You can specify a search string, a range of recovery points to search, the type of object to search for, as well as a location and whether to search recursively.
Use the Get-DPMRecoverableItem cmdlet to perform a search.
パラメーター
-FromRecoveryPoint<DateTime>
Specifies a date time object. This is the first date of the search range.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Location<String>
Specifies the location of a recovery point.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Recursive
Indicates that the search is recursive.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SearchDetail<SearchParameters+SearchForDetail>
Specifies the type of object to search for. The acceptable values for this parameter are:
-- FileFolders
-- MailboxByAlias
-- MailboxByDisplayName
-- WssSite
-- WssDocuments
エイリアス |
none |
必須? |
true |
位置は? |
3 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SearchString<String>
Specifies a string to search for in the target recovery points.
エイリアス |
none |
必須? |
true |
位置は? |
5 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SearchType<SearchParameters+SearchFilterType>
Specifies the type of comparison for the search. The acceptable values for this parameter are:
-- startsWith
-- contains
-- endsWith
-- exactMatch
エイリアス |
none |
必須? |
true |
位置は? |
4 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ToRecoveryPoint<DateTime>
Specifies a date time object. This is the last date of the search range.
エイリアス |
none |
必須? |
true |
位置は? |
2 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- SearchOption
注
- For more information, type "
Get-Help New-DPMSearchOption -detailed
".
例
Example 1: Create a search option
This command creates a search option object for recovery points between September 15, 2009 and September 28, 2009. The object specifies searches for files and folders that contain the string tobe in the location D:\. The command specifies the search as recursive, therefore, the search also checks files and folders in directories and subdirectories of the D:\ drive.
PS C:\> New-DPMSearchOption -FromRecoveryPoint "15 September 2009" -ToRecoveryPoint "28 September 2009" -SearchDetail FileFolders -SearchType contains -Recursive -SearchString "tobe" -Location "D:\"