Get-RMSession
From PowerGUI Wiki
Retrieves Recovery Manager backup sessions.
Contents |
Syntax
Get-RMSession [-Collection <String[]>] [-Result <SessionResult[]>] [-DayCount <Int32>] [-StartType <SessionStartType>] [<CommonParameters>]
Detailed Description
Retrieves object for specific Recovery Manager backup sessions.
Related Commands
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| Collection | Specifies the name of the computer collection for which you want to retrieve backup sessions. | false | true (ByValue) | |
| Result | Specifies result for the backup sessions you want to retrieve. If you omit this parameter, sessions are retrieved regardless of their result. | false | false | |
| DayCount | Specifies the number of days within which the sessions you want to retrieve were completed. If you omit this parameter, sessions are retrieved regardless of when they were completed. | false | false | |
| StartType | Specifies to return either scheduled backup sessions or backup sessions that were started manually. | false | false |
Examples
Example
Get-RMSession -Collection col1 -Result Error,Warning –DayCount 5
Returns the backup sessions for the computer collection named col1 that ended with an error or warning in the recent 5 days.
