Bladeren bron

Added support for the Seagate disks

David Witham 4 jaren geleden
bovenliggende
commit
c8f428b3ed
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      backup_aragorn.psm1

+ 1 - 1
backup_aragorn.psm1

@@ -77,7 +77,7 @@ function backup_aragorn {
 # Get the age of the backup to make sure we are using the right disk
 function check_disk($diskoverride=$false) {
 
-    $backupDisk = Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.VolumeName -match "Backup"}
+    $backupDisk = Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.VolumeName -match "Backup" -or $_.VolumeName -match "Seagate"}
     $partialBackup = $false
 
     # Test the age of the backup on the disk