Open ftroot opened 10 months ago
Same Error
Write-Log : Failed to fetch Global Address List Contacts from Office 365 Directory In Zeile:85 Zeichen:3 Write-Log -Level "FATAL" -Message "Failed to fetch Global Add ...
~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Log
The old version stopped working some weeks ago, so we tried to update the script.
@ftroot @hxcde
I'm using powershell 6 & have not tested using powershell 7. Could you try downgrading to see if this resolves your issue?
@ftroot @hxcde
I'm using powershell 6 & have not tested using powershell 7. Could you try downgrading to see if this resolves your issue?
Still the same error with Powershell Version 6.27
@ftroot @hxcde
I'm using powershell 6 & have not tested using powershell 7. Could you try downgrading to see if this resolves your issue?
Any chance to have this script work on PS 7 ? Would be great if you could consider adapting the script as PS7 is now the default release with the one-liner tool. Thanks a lot in advance.
Hi all,
Here is the full log:
`... VERBOSE: ModuleVersion: 3.2.0 PS>TerminatingError(Get-ConnectionContext): "Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." VERBOSE: ConnectionContext Removed PS>TerminatingError(): "Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." PS>TerminatingError(Write-Log): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to fetch Global Address List Contacts from Office 365 Directory"
Windows PowerShell transcript end End time: 20230831142326 **`
After Googling on this error, it seems to be a version conflict. See here for example.
I'm running the script on PowerShell 7.3.0 (Windows Server 2016). The .dll files are not blocked. Thanks for any idea as I just don't know what I'm suppose to do now...