< Back

Get-AADIntOneDriveFiles

Fri Jan 10, 2020 5:46 pm

NAME Get-AADIntOneDriveFiles



SYNOPSIS

Downloads user's OneDrive





SYNTAX

Get-AADIntOneDriveFiles [-OneDriveSettings] <Object> [[-MaxItems] <Int32>] [[-DomainGuid] <Guid>] [-PrintOnly]

[-FoldersOnly] [<CommonParameters>]





DESCRIPTION

Downloads the user's OneDrive root folder and files recursively





PARAMETERS

-OneDriveSettings <Object>

OneDrive settings of the user



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MaxItems <Int32>



Required? false

Position? 2

Default value 500

Accept pipeline input? false

Accept wildcard characters? false



-DomainGuid <Guid>



Required? false

Position? 3

Default value (New-Guid)

Accept pipeline input? false

Accept wildcard characters? false



-PrintOnly [<SwitchParameter>]

Doesn't download the files



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-FoldersOnly [<SwitchParameter>]

Doesn't handle files but only folders



Required? false

Position? named

Default value False

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



Get-AADIntOneDriveFiles -OneDriveSettings $os | Format-Table



Path Size Created Modified ResourceID

---- ---- ------- -------- ----------

\\RootFolder\\Document1.docx 11032 2.12.2019 20.47.23 2.12.2019 20.48.46 5e7acf393a2e45f18c1ce6caa7...

\\RootFolder\\Book.xlsx 8388 2.12.2019 20.49.14 2.12.2019 20.50.14 b26c0a38d4d14b23b785576e29...

\\RootFolder\\Docs\\Document1.docx 84567 9.12.2019 11.24.40 9.12.2019 12.17.50 d9d51e47b66c4805aff3a08763...

\\RootFolder\\Docs\\Document2.docx 31145 7.12.2019 17.28.37 7.12.2019 17.28.37 972f9c317e1e468fb2b6080ac2...









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



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



Get-AADIntOneDriveFiles -OneDriveSettings $os -PrintOnly | Format-Table



Path Size Created Modified ResourceID

---- ---- ------- -------- ----------

\\RootFolder\\Document1.docx 11032 2.12.2019 20.47.23 2.12.2019 20.48.46 5e7acf393a2e45f18c1ce6caa7...

\\RootFolder\\Book.xlsx 8388 2.12.2019 20.49.14 2.12.2019 20.50.14 b26c0a38d4d14b23b785576e29...

\\RootFolder\\Docs\\Document1.docx 84567 9.12.2019 11.24.40 9.12.2019 12.17.50 d9d51e47b66c4805aff3a08763...

\\RootFolder\\Docs\\Document2.docx 31145 7.12.2019 17.28.37 7.12.2019 17.28.37 972f9c317e1e468fb2b6080ac2...









-------------------------- EXAMPLE 3 --------------------------



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



Get-AADIntOneDriveFiles -OneDriveSettings $os -DomainGuid "ff909322-6b19-4a86-b9e9-e01ebb9432fe" | Format-Table



Path Size Created Modified ResourceID

---- ---- ------- -------- ----------

\\RootFolder\\Document1.docx 11032 2.12.2019 20.47.23 2.12.2019 20.48.46 5e7acf393a2e45f18c1ce6caa7...

\\RootFolder\\Book.xlsx 8388 2.12.2019 20.49.14 2.12.2019 20.50.14 b26c0a38d4d14b23b785576e29...

\\RootFolder\\Docs\\Document1.docx 84567 9.12.2019 11.24.40 9.12.2019 12.17.50 d9d51e47b66c4805aff3a08763...

\\RootFolder\\Docs\\Document2.docx 31145 7.12.2019 17.28.37 7.12.2019 17.28.37 972f9c317e1e468fb2b6080ac2...











RELATED LINKS