Get list of Outlook Favorite Item via Powershell
Solution 1:
This code will list Favorites
$ol = New-Object -ComObject Outlook.Application
$ex = $ol.Application.ActiveExplorer()
$mm = $ex.NavigationPane.Modules.GetNavigationModule(0)
$favorites = $mm.NavigationGroups.GetDefaultNavigationGroup(4)
$favorites.NavigationFolders | Select-Object -ExpandProperty folder | Select-Object FolderPath
Solution 2:
I found a similar thread for your reference: Get list of Outlook Favorite Item via Powershell
The script to fix your problem is similar with jfrmilner's:
$OutlookObject=New-Object -ComObject Outlook.Application
$ActiveExplorer=$OutlookObject.Application.ActiveExplorer()
$NModule=$ActiveExplorer.NavigationPane.Modules.GetNavigationModule(0)
$FavFolder=$NModule.NavigationGroups.GetDefaultNavigationGroup(4)
$FavFolder.NavigationFolders|select -expand folder|select Name | Out-File -FilePath "C:\Favourite.txt"