You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -53,7 +61,7 @@ function Invoke-CIPPStandardDisableGuests {
53
61
}
54
62
if ($Settings.alert-eq$true) {
55
63
56
-
if ($GraphRequest) {
64
+
if ($GraphRequest.Count-gt0) {
57
65
Write-StandardsAlert-message "Guests accounts with a login longer than 90 days ago: $($GraphRequest.count)"-object $GraphRequest-tenant $tenant-standardName 'DisableGuests'-standardId $Settings.standardId
58
66
Write-LogMessage-API 'Standards'-tenant $tenant-message "Guests accounts with a login longer than 90 days ago: $($GraphRequest.count)"-sev Info
0 commit comments