DirectoryRetrievalDepth Parameter (Connect-OneDrive Cmdlet)
This property specifies how many folder levels deep to retrieve results for the Folders, Files, SharedResources, and Permissions tables.
Syntax
Connect-OneDrive -DirectoryRetrievalDepth string
Data Type
cstr
Default Value
"5"
Remarks
If not specified, the 本製品 uses a default value of DirectoryRetrievalDepth=5. If set to -1, all files and folders on the drive are retrieved, regardless of depth.
Resources located directly in the root are at depth 0, while resources one folder deeper are at depth 1, and so forth.