Guest User

Untitled

a guest
Jul 10th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $ImportCSV = Import-csv $VMNames
  2. $Days = 10
  3. $DateToCompare = (Get-date).AddDays(-$Days)
  4. $ImportCSV | % {
  5. Get-VBRRestorePoint -Name $_.Name |
  6. Where-Object { $_.CreationTime -gt $DateToCompare }
  7. } | Select-Object VMName
Add Comment
Please, Sign In to add comment