none
Нашел баг, куда репортить? RRS feed

  • Вопрос

  • Вот такой скрипт

    $PSList = get-productionServer  $env:computername | where { $_.AreRecoveryPointsPresent -eq $true } | sort name
    $PS = $PSList[1]
    $DataSourceList = Get-Datasource $PS | where { $_.Protected -eq $true} | sort name
    foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    Start-Sleep -Milliseconds 500
    foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    Start-Sleep -Milliseconds 500
    foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    Start-Sleep -Milliseconds 500
    foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}

    даст в итоге вот такое:

    PS C:\Users\rahs\Documents> $DataSourceList
    
    Computer                                                                            Name                                                                               ObjectType
    --------                                                                            ----                                                                               ----------
    SRV-01                                                                         D:\                                                                                Volume
    
    
    PS C:\Users\rahs\Documents> foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    01.01.0001 0:00:00
    PS C:\Users\rahs\Documents> Start-Sleep -Milliseconds 500
    PS C:\Users\rahs\Documents> foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    01.01.0001 0:00:00
    PS C:\Users\rahs\Documents> Start-Sleep -Milliseconds 500
    PS C:\Users\rahs\Documents> foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    21.11.2015 18:04:09
    PS C:\Users\rahs\Documents> Start-Sleep -Milliseconds 500
    PS C:\Users\rahs\Documents> foreach($DS in $DataSourceList) {Write-Output $DS.OldestRecoveryPoint.ToString()}
    21.11.2015 18:04:09
    PS C:\Users\rahs\Documents>
    Вроде как баг, куда его репортить? В connect раздела DPM не нашел
    27 ноября 2015 г. 11:18

Ответы

Все ответы