hi Nasir, thks for reply! yes, i download scripts again but same error... i think error get just before going to login to exchange online...
[PS] C:\PFscripts>.\Sync-ModernMailPublicFolders.ps1
cmdlet Sync-ModernMailPublicFolders.ps1 en la posición 1 de la canalización de comandos
Proporcione valores para los parámetros siguientes:
CsvSummaryFile: 15082024.csv
Creando una nueva sesión para la comunicación remota implícita del comando "Set-ADServerSettings"...
Checking for mail-enabled System folders...
Found 0 mail-enabled System folders.
Getting all public folders. This might take a while...
Found 505 public folders.
317 of those are mail-enabled.
0 folders are mail-enabled with no AD object.
317 folders are mail-enabled and are properly linked to an existing AD object.
Getting all MailPublicFolder objects...
1 MailPublicFolders are orphaned.
Building EntryId HashSets...
1 orphaned MailPublicFolder objects.
1 of those orphans point to mail-enabled folders that point to some other object.
0 of those orphans point to mail-disabled folders.
No folders need to be mail-disabled.
No orphaned MailPublicFolders were found.
1 MailPublicFolders are duplicates and should be deleted. They exist in Active Directory
and point to a valid folder, but that folder points to some other directory object.
These are listed in a file called:
C:\PFscripts\MailPublicFolderDuplicates.txt
After confirming the accuracy of the results, you can delete them with the following command:
Get-Content "C:\PFscripts\MailPublicFolderDuplicates.txt" | % { $folder = ([ADSI]("LDAP://$_")); $parent = ([ADSI]"$($folder.Parent)"); $parent.Children.Remove($folder) }
The duplicates we are deleting contain email addresses that might still be in use.
To preserve these, we generated a script that will add these to the linked objects for those folders.
After deleting the duplicate objects using the command above, run the script as follows to
populate these addresses:
.\C:\PFscripts\AddAddressesFromDuplicates.ps1
No mail-disabled public folders with proxy GUIDs were found.
No disconnected MailPublicFolders were found.
Done!
C:\PFscripts\Sync-ModernMailPublicFolders.ps1 : You cannot execute this script from your local Exchange server:
"Version 15.1 (Build 2507.6)". This script can only be executed from Exchange 2007 Management Shell and above.
En línea: 1 Carácter: 1
+ .\Sync-ModernMailPublicFolders.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Sync-ModernMailPublicFolders.ps1