瀏覽代碼

Added support for the Seagate disks

David Witham 4 年之前
父節點
當前提交
c8f428b3ed
共有 1 個文件被更改,包括 1 次插入1 次删除
  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