Cmdlets for Microsoft OneDrive

Build 25.0.9434

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 cmdlet 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.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434