Add files via upload

Fixed Personal Greeting error
This commit is contained in:
Martin Bengtsson 2020-07-11 08:47:44 +02:00 committed by GitHub
parent f1bb42ac2f
commit 4fbd0531ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -930,10 +930,10 @@ if ($PSAppStatus -eq "True") {
if ($GreetGivenName -eq "True") {
Write-Log -Message "Greeting with given name selected. Replacing HeaderText"
$Hour = (Get-Date).TimeOfDay.Hours
if (($Hour -lt 0) -and ($Hour -lt 12)) {
if (($Hour -ge 0) -AND ($Hour -lt 12)) {
$Greeting = $GreetMorningText
}
elseif (($Hour -lt 12) -and ($Hour -lt 16)) {
elseif (($Hour -ge 12) -AND ($Hour -lt 16)) {
$Greeting = $GreetAfternoonText
}
else {