jseerden / IntuneBackupAndRestore

PowerShell Module that queries Microsoft Graph, and allows for cross-tenant Backup & Restore actions of your Intune Configuration.
MIT License
345 stars 102 forks source link

Compare-IntuneBackupDirectories - Cannot bind argument to parameter #32

Closed jonathan-ford closed 2 years ago

jonathan-ford commented 3 years ago

Hi jseerden,

I'm getting the below error, can you advise if this is a bug or user error.

PS C:\WINDOWS\system32> Compare-IntuneBackupDirectories -ReferenceDirectory "C:\IntuneConfig1" -DifferenceDirectory "C:\IntuneConfig2" Compare-IntuneBackupFile : Cannot bind argument to parameter 'DifferenceFilePath' because it is an empty string. At C:\Program Files\WindowsPowerShell\Modules\intunebackupandrestore\2.0.0\Public\Compare-IntuneBackupDirectories.ps1:62 char:94

Though I then also get results, so for each item it finds it seems to generate the same error above and then diff.

ztrhgf commented 3 years ago

Solved in my pull request https://github.com/jseerden/IntuneBackupAndRestore/pull/44

jseerden commented 2 years ago

Pull request was merged