Microsoft Surface Hub 2 SmCamera User Manual
Page 539
![background image](/files/873833/content/doc539.png)
$orgSettings =
Get-ActiveSyncOrganizationSettings
$strDefaultAccessLevel = $orgSettings.DefaultAccessLevel
Validate
-Test
"ActiveSync devices are allowed"
-Condition
($strDefaultAccessLevel -eq
'Allow'
)
-FailureMsg
"DeviceType Windows Mail is
accessible - devices are not allowed by default - the surface hub will not
be able to send mail or sync its calendar."
# Check if there exists a device access rule that bans the device type
Windows Mail
$blockingRules =
Get-ActiveSyncDeviceAccessRule
| where {($_.AccessLevel -eq
'Block'
-or
$_.AccessLevel -eq
'Quarantine'
)
-and
$_.Characteristic -eq
'DeviceType'
-and $_.QueryString -eq
'WindowsMail'
}
Validate
-Test
"Windows mail devices are not blocked or quarantined"
-
Condition
($blockingRules -eq
$null
-or
$blockingRules.Length -eq 0)
-
FailureMsg
"DeviceType Windows Mail is accessible - devices are blocked or
quarantined - the surface hub will not be able to send mail or sync its
calendar."
## End Exchange ##
## SfB ##
$strLyncIdentity =
$null
if
($fSfbIsOnline)
{
$strLyncIdentity = $strUpn
}
else
{
$strLyncIdentity = $strAlias
}
$lyncAccount =
$null
try
{
$lyncAccount =
Get-CsMeetingRoom
-Identity
$strLyncIdentity
-
WarningAction
SilentlyContinue
-ErrorAction
SilentlyContinue
} catch {
try
{
$lyncAccount =
Get-CsUser
-Identity
$strLyncIdentity
-WarningAction
SilentlyContinue
-ErrorAction
SilentlyContinue
} catch { }
}
Validate
-Test
"There is a Lync or Skype for Business account for
$strLyncIdentity"
-Condition
($lyncAccount -ne
$null
-and
$lyncAccount.Enabled)
-FailureMsg
"SfB Enabled - there is no Skype for
Business account - meetings will not support Skype for Business"
if
($lyncAccount)
{
Validate
-Test
"The meeting room has a SIP address"
-Condition
(!
[System.String]::IsNullOrEmpty($lyncAccount.SipAddress))
-FailureMsg
"SfB
Enabled - there is no SIP Address - the device account cannot be used to
sign into Skype for Business."
}
## End SFB ##