Microsoft Surface Hub 2 SmCamera User Manual

Page 537

Advertising
background image

[bool] $Condition,
[string]$FailureMsg,
[switch]$WarningOnly
)

Write-Host

-NoNewline -ForegroundColor

White $Test.PadRight(100,

'.'

)

if

($Condition)

{

Write-Host

-ForegroundColor

Green

"Passed"

$global:iTotalPasses++
}

else

{

if

($WarningOnly)

{

Write-Host

-ForegroundColor

Yellow (

"Warning: "

+$FailureMsg)

$global:iTotalWarnings++
}

else

{

Write-Host

-ForegroundColor

Red (

"Failed: "

+$FailureMsg)

$global:iTotalFailures++
}
}
}

## Exchange ##

Validate

-WarningOnly -Test

"The mailbox $strUpn is enabled as a room

account"

-Condition

($mailbox.RoomMailboxAccountEnabled -eq

$True

)

-

FailureMsg

"RoomMailboxEnabled - without a device account, the Surface Hub

will not be able to use various key features."

$calendarProcessing =

Get-CalendarProcessing

-Identity

$strUpn

-

WarningAction

SilentlyContinue

-ErrorAction

SilentlyContinue

Validate

-Test

"The mailbox $strUpn is configured to accept meeting

requests"

-Condition

($calendarProcessing -ne

$null

-and

$calendarProcessing.AutomateProcessing -eq

'AutoAccept'

)

-FailureMsg

"AutomateProcessing - the Surface Hub will not be able to send mail or sync
its calendar."

Validate

-WarningOnly -Test

"The mailbox $strUpn will not delete meeting

comments"

-Condition

($calendarProcessing -ne

$null

-and

!$calendarProcessing.DeleteComments)

-FailureMsg

"DeleteComments - the

Surface Hub may be missing some meeting information on the welcome screen
and Skype."

Validate

-WarningOnly -Test

"The mailbox $strUpn keeps private meetings

private"

-Condition

($calendarProcessing -ne

$null

-and

!$calendarProcessing.RemovePrivateProperty)

-FailureMsg

"RemovePrivateProperty - the Surface Hub will make show private meetings."

Validate

-Test

"The mailbox $strUpn keeps meeting subjects"

-Condition

($calendarProcessing -ne

$null

-and

!$calendarProcessing.DeleteSubject)

-

FailureMsg

"DeleteSubject - the Surface Hub will not keep meeting subject

information."

Validate

-WarningOnly -Test

"The mailbox $strUpn does not prepend meeting

organizers to subjects"

-Condition

($calendarProcessing -ne

$null

-and

!$calendarProcessing.AddOrganizerToSubject)

-FailureMsg

Advertising