< Back

Get-AADIntAccessTokenForOneDrive

Fri Jan 10, 2020 5:40 pm

NAME Get-AADIntAccessTokenForOneDrive



SYNOPSIS

Gets OAuth Access Token for OneDrive





SYNTAX

Get-AADIntAccessTokenForOneDrive -Tenant <String> [-Credentials <PSCredential>] [<CommonParameters>]



Get-AADIntAccessTokenForOneDrive -Tenant <String> -SAMLToken <String> [<CommonParameters>]



Get-AADIntAccessTokenForOneDrive -Tenant <String> -KerberosTicket <String> -Domain <String> [<CommonParameters>]





DESCRIPTION

Gets OAuth Access Token for OneDrive Sync client





PARAMETERS

-Tenant <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credentials <PSCredential>

Credentials of the user.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SAMLToken <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-KerberosTicket <String>

Kerberos token of the user.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>



Required? true

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:\\>Get-AADIntAccessTokenForOneDrive













-------------------------- EXAMPLE 2 --------------------------



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



PS C:\\>Get-AADIntAccessTokenForOneDrive -Credentials $cred











RELATED LINKS