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
"The password for $($_.AccountName) is $($PlainText) generated at $($date)"
16
16
}
17
17
if ($GraphRequest) { return$GraphRequest } else { return"No LAPS password found for $device" }
18
18
} catch {
19
19
$ErrorMessage=Get-CippException-Exception $_
20
-
Write-LogMessage-user $ExecutingUser-API $APIName-message "Could not add OOO for $($userid). Error: $($ErrorMessage.NormalizedError)"-Sev 'Error'-tenant $TenantFilter-LogData $ErrorMessage
21
-
return"Could not add out of office message for $($userid). Error: $($ErrorMessage.NormalizedError)"
20
+
Write-LogMessage-user $ExecutingUser-API $APIName-message "Could not retrieve LAPS password for $($device). Error: $($ErrorMessage.NormalizedError)"-Sev 'Error'-tenant $TenantFilter-LogData $ErrorMessage
21
+
return"Could not retrieve LAPS password for $($device). Error: $($ErrorMessage.NormalizedError)"
0 commit comments