< Back

Add-AADIntEASDevice

Fri Jan 10, 2020 5:36 pm

NAME Add-AADIntEASDevice



SYNOPSIS

Adds a new ActiveSync device to user





SYNTAX

Add-AADIntEASDevice -Credentials <PSCredential> -DeviceId <String> [-DeviceType <String>] [-Model <String>] [-IMEI

<String>] [-FriendlyName <String>] [-OS <String>] [-OSLanguage <String>] [-PhoneNumber <String>] [-MobileOperator

<String>] [-UserAgent <String>] [<CommonParameters>]



Add-AADIntEASDevice -AccessToken <String> -DeviceId <String> [-DeviceType <String>] [-Model <String>] [-IMEI

<String>] [-FriendlyName <String>] [-OS <String>] [-OSLanguage <String>] [-PhoneNumber <String>] [-MobileOperator

<String>] [-UserAgent <String>] [<CommonParameters>]





DESCRIPTION

Adds a new ActiveSync device to the user, and accepts security policies. All device information settings are

required (Model, IMEI, FriendlyName, OS, OSLanguage, PhoneNumber, MobileOperator, and User-Agent).

Returns a policy key that could be used in subsequent ActiveSync calls





PARAMETERS

-Credentials <PSCredential>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AccessToken <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DeviceId <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DeviceType <String>



Required? false

Position? named

Default value Android

Accept pipeline input? false

Accept wildcard characters? false



-Model <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IMEI <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FriendlyName <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OS <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OSLanguage <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PhoneNumber <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MobileOperator <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserAgent <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$Cred=Get-Credential



PS C:\\>Add-AADIntEASDevice -Credentials $Cred -DeviceId androidc481040056 -DeviceType Android -Model "Samsung S10"

-PhoneNumber "+1234567890" -IMEI "1234" -FriendlyName "My Phone" -OS "Android" -OSLanguage "EN" -MobileOperator

"BT" -UserAgent "Android/8.0"



3382976401











RELATED LINKS