microsoft exchange online management
1 TopicOccasionally an error occurs in Disconnect-ExchangeOnline
Hi Community, When running Disconnect-ExchangeOnline, the following error may occur. If anyone knows how to work around this error, please let me know. Error Description: PS C:\> Disconnect-ExchangeOnline -Confirm:$false Remove-Item : Cannot remove item C:\Users\administrator.xxxxx\AppData\Local\Temp\tmpEXO_q2lyvkhx.og5\en-us: The directory is not empty. At line:1 char:1 + Remove-Item -Path "C:\Users\administrator.xxxxx\AppData\Local\T ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (en-us:DirectoryInfo) [Remove-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand Remove-Item : Cannot remove item C:\Users\administrator.xxxxx\AppData\Local\Temp\tmpEXO_q2lyvkhx.og5: The directory is not empty. At line:1 char:1 + Remove-Item -Path "C:\Users\administrator.xxxxx\AppData\Local\T ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\Users\admini...XO_q2lyvkhx.og5:DirectoryInfo) [Remove-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand PS C:\> Get-InstalledModule ExchangeOnlineManagement | Format-List Name,Version,InstalledLocation Name : ExchangeOnlineManagement Version : 3.1.0 InstalledLocation : C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.1.0 PS C:\> $PSVersionTable Name Value ---- ----- PSVersion 5.1.14393.1884 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14393.1884 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 The same error occurred when using the recently released ExchangeOnlineManagement 3.2.0-Preview1. Let me know in case any additional information is required. Thanks.Solved4.5KViews0likes4Comments