79600914

Date: 2025-04-30 18:35:02
Score: 1
Natty:
Report link

After some try and error, mostly errors, it seems like the answer or workaround could be something like this:

$ShareDriveItemCam=Get-MgShareDriveItem -SharedDriveItemId  $SharedEncodeURLCam   -ExpandProperty "children" 

$AllFiles=Get-MgDriveItemChild  -DriveId $ShareDriveItemCam.ParentReference.DriveId -DriveItemId $ShareDriveItemCam.Id  -All

Where $SharedEncodeURLCam is the encoded weburl of folder of intrest.

Using Get-MgDriveItemChild returns all 5000+ objects of the shared folder.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Erik Arndal