DirectoryRetrievalDepth Parameter (Connect-OneDrive Cmdlet)
Specify how many folders deep you want to get results for Folders, Files, SharedResources and Permissions tables. The resources directly in the root are located at depth 0. The resources one folder deeper are located at depth 1 and so on. You can specify the value -1 to get all the data in a drive no matter the depth they're in.
Syntax
Connect-OneDrive -DirectoryRetrievalDepth string
Data Type
cstr
Default Value
"5"
Remarks
This property must be set in the connection string or the driver will use a default of DirectoryRetrievalDepth=5.