Microsoft Surface Hub 2 SmCamera User Manual

Page 538

Advertising
background image

"AddOrganizerToSubject - the Surface Hub will not display meeting subjects
as intended."

if

($fExIsOnline)

{

#No online specifics

}

else

{

#No onprem specifics

}

#ActiveSync

$casMailbox =

Get-Casmailbox

$strUpn

-WarningAction

SilentlyContinue

-

ErrorAction

SilentlyContinue

Validate

-Test

"The mailbox $strUpn has a mailbox policy"

-Condition

($casMailbox -ne

$null

)

-FailureMsg

"PasswordEnabled - unable to find policy

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

if

($casMailbox)

{
$policy =

$null

if

($fExIsOnline

-or

$exchange.IsE15OrLater)

{
$strPolicy = $casMailbox.ActiveSyncMailboxPolicy
$policy =

Get-MobileDeviceMailboxPolicy

-Identity

$strPolicy

-

WarningAction

SilentlyContinue

-ErrorAction

SilentlyContinue

Validate

-Test

"The policy $strPolicy does not require a device

password"

-Condition

($policy.PasswordEnabled -ne

$True

)

-FailureMsg

"PasswordEnabled - policy requires a device password - the Surface Hub will
not be able to send mail or sync its calendar."

}

else

{
$strPolicy = $casMailbox.ActiveSyncMailboxPolicy
$policy =

Get-ActiveSyncMailboxPolicy

-Identity

$strPolicy

-

WarningAction

SilentlyContinue

-ErrorAction

SilentlyContinue

Validate

-Test

"The policy $strPolicy does not require a device

password"

-Condition

($policy.PasswordEnabled -ne

$True

)

-FailureMsg

"PasswordEnabled - policy requires a device password - the Surface Hub will
not be able to send mail or sync its calendar."

}

if

($policy -ne

$null

)

{
Validate

-Test

"The policy $strPolicy allows non-provisionable

devices"

-Condition

($policy.AllowNonProvisionableDevices -eq

$null

-or

$policy.AllowNonProvisionableDevices -eq

$true

)

-FailureMsg

"AllowNonProvisionableDevices - policy will not allow the SurfaceHub to
sync"

}

}

# Check the default access level

Advertising