< Back

Send-AADIntOneDriveFile

Fri Jan 10, 2020 6:00 pm

NAME Send-AADIntOneDriveFile



SYNOPSIS

Sends a file to user's OneDrive





SYNTAX

Send-AADIntOneDriveFile [-FileName] <String> [-OneDriveSettings] <Object> [-FolderId] <String> [[-DomainGuid]

<Guid>] [[-ETag] <String>] [<CommonParameters>]





DESCRIPTION

Sends a file to user's OneDrive





PARAMETERS

-FileName <String>

File name of the file to be sent OneDrive



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OneDriveSettings <Object>

OneDrive settings of the user



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FolderId <String>

Contains Resource ID of folder where file will be uploaded.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DomainGuid <Guid>

Guid of the domain of user's computer.



Required? false

Position? 4

Default value (New-Guid)

Accept pipeline input? false

Accept wildcard characters? false



-ETag <String>

Contains Resource ID and version information of the file. If provided, tries to update the file



Required? false

Position? 5

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:\\>$os = New-AADIntOneDriveSettings



Send-AADIntOneDriveFile -FileName "Document1.docx" -OneDriveSettings $os -FolderId

3936bbea74b54f52b4c0ec6f362d6df9rea



ResourceID : 68c71b7f4be8414b9752266ef4d715b3

ETag : "{68C71B7F-4BE8-414B-9752-266EF4D715B3},2"

DateModified : 2019-12-09T10:57:36.0000000Z

RelationshipName : Document1.docx

ParentResourceID : 3936bbea74b54f52b4c0ec6f362d6df9

fsshttpstate.xschema.storage.live.com : fsshttpstate.xschema.storage.live.com

DocumentStreams : DocumentStreams

WriteStatus : Success









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



PS C:\\>$os = New-AADIntOneDriveSettings



Send-AADIntOneDriveFile -FileName "Document1.docx" -OneDriveSettings $os -ETag

"{68c71b7f-4be8-414b-9752-266ef4d715b3},2" -FolderId 3936bbea74b54f52b4c0ec6f362d6df9



ResourceID : 68c71b7f4be8414b9752266ef4d715b3

ETag : "{68C71B7F-4BE8-414B-9752-266EF4D715B3},3"

DateModified : 2019-12-09T10:57:36.0000000Z

RelationshipName : Document1.docx

ParentResourceID : 3936bbea74b54f52b4c0ec6f362d6df9

fsshttpstate.xschema.storage.live.com : fsshttpstate.xschema.storage.live.com

DocumentStreams : DocumentStreams

WriteStatus : Success











RELATED LINKS