Skip to content

Commit

Permalink
Merge pull request #13 from MrTechGadget/RemoveFullWipePending
Browse files Browse the repository at this point in the history
Added DeviceWipePending, fixes #1
  • Loading branch information
MrTechGadget authored Oct 14, 2020
2 parents 9c87ea2 + 6941d87 commit ca5186c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PSairwatch.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,15 @@ Function Set-UnenrolledDeviceIdList {
} elseif ($device.EnrollmentStatus -eq "WipeInitiated") {
$entwipe += $device.Id.Value
Write-Verbose "$($device.SerialNumber) is WipeInitiated"
} elseif ($device.EnrollmentStatus -eq "DeviceWipePending") {
$entwipe += $device.Id.Value
Write-Verbose "$($device.SerialNumber) is DeviceWipePending"
} else {
Write-Verbose "$($device.SerialNumber) is not pending Enterprise Wipe, Device WipeInitiated or unenrolled, skipping"
Write-Verbose "$($device.SerialNumber) is not pending Enterprise Wipe, Device WipeInitiated, DeviceWipePending, or Unenrolled, skipping"
$t++
}
}
Write-Host "Skipped $t devices that are not pending enterprise wipe or unenrolled."
Write-Host "Skipped $t devices that are not pending wipe or unenrolled."
return $entwipe
}

Expand Down

0 comments on commit ca5186c

Please sign in to comment.