microsoft / EntraExporter

PowerShell module to export a local copy of an Entra (Azure AD) tenant configuration.
https://aka.ms/EntraExporter
MIT License
568 stars 89 forks source link

AzureADExporter refuses to write anything to disk #46

Closed cristeigabriel closed 1 year ago

cristeigabriel commented 1 year ago

Trying to run this on a desktop, monitoring powershell process with process monitor, when running Export-AzureAD -Path "C:\test123" -Type "Users", the only activity that happens is in %userprofile%/.graph + TCP connections, but nothing is written to disk in the specified location despite getting some apparently pertinent console output.

PS C:\> Export-AzureAD -Path "C:\test123" -Type "Users"
 Users
PS C:\> cd test123
cd : Cannot find path 'C:\test123' because it does not exist.
At line:1 char:1
+ cd test123
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\test123:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

I tried multiple paths (for example in temp or in documents) and only some specific type, but nothing would happen. I also enabled long filenames.

merill commented 1 year ago

Can you please retry with the newest version? Please re-open this issue if you are still seeing it.