Returns public folder information for a computer running Microsoft Exchange Server 2003
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & _"\ROOT\MicrosoftExchangeV2")Set colItems = objWMIService.ExecQuery _("Select * from Exchange_PublicFolder")For Each objItem in colItemsWscript.Echo "Address book name: " & objItem.AddressBookNameWscript.Echo "Administrative note: " & _objItem.AdministrativeNoteWscript.Echo "Administrative security descriptor: " & _objItem.AdminSecurityDescriptorWscript.Echo "Active Directory proxy path: " & _objItem.ADProxyPathWscript.Echo "Associated messgae count: " & _objItem.AssociatedMessageCountWscript.Echo "Attachment count: " & objItem.AttachmentCountWscript.Echo "Categorization count: " & _objItem.CategorizationCountWscript.Echo "Comment: " & objItem.CommentWscript.Echo "Contact count: " & objItem.ContactCountWscript.Echo "Contains rules: " & objItem.ContainsRulesWscript.Echo "Creation time: " & objItem.CreationTimeWscript.Echo "Deleted item lifetime: " & _objItem.DeletedItemLifetimeWscript.Echo "Folder tree: " & objItem.FolderTreeWscript.Echo "Friendly URL: " & objItem.FriendlyURLWscript.Echo "Has children: " & objItem.HasChildrenWscript.Echo "Has local replica: " & objItem.HasLocalReplicaWscript.Echo "Is mail enabled: " & objItem.IsMailEnabledWscript.Echo "Is normal folder: " & objItem.IsNormalFolderWscript.Echo "Is search folder: " & objItem.IsSearchFolderWscript.Echo "Is secure in site: " & objItem.IsSecureInSiteWscript.Echo "Last access time: " & objItem.LastAccessTimeWscript.Echo "Last modification time: " & _objItem.LastModificationTimeWscript.Echo "Maximum item size: " & objItem.MaximumItemSizeWscript.Echo "Message count: " & objItem.MessageCountWscript.Echo "Message with attachments count: " & _objItem.MessageWithAttachmentsCountWscript.Echo "Name: " & objItem.NameWscript.Echo "Normal message size: " & _objItem.NormalMessageSizeWscript.Echo "owner count: " & objItem.OwnerCountWscript.Echo "Parent friendly URL: " & _objItem.ParentFriendlyURLWscript.Echo "Path: " & objItem.PathWscript.Echo "Prohibit post limit: " & _objItem.ProhibitPostLimitWscript.Echo "Publish in address book: " & _objItem.PublishInAddressBookWscript.Echo "Recipiejt count on associated messages: " & _objItem.RecipientCountOnAssociatedMessagesWscript.Echo "Recipient count on normal messages: " & _objItem.RecipientCountOnNormalMessagesWscript.Echo "Replica age limit: " & objItem.ReplicaAgeLimitWscript.Echo "Replica list: " & objItem.ReplicaListWscript.Echo "Replication message priority: " & _objItem.ReplicationMessagePriorityWscript.Echo "Replication schedule: " & _objItem.ReplicationScheduleWscript.Echo "Replication style: " & objItem.ReplicationStyleWscript.Echo "Replication count: " & objItem.RestrictionCountWscript.Echo "Security descriptor: " & _objItem.SecurityDescriptorWscript.Echo "Storage limit style: " & objItem.StorageLimitStyleWscript.Echo "Target address: " & objItem.TargetAddressWscript.Echo "Total message size: " & objItem.TotalMessageSizeWscript.Echo "URL: " & objItem.URLWscript.Echo "Use public store age limits: " & _objItem.UsePublicStoreAgeLimitsWscript.Echo "Use public store deleted item lifetime: " & _objItem.UsePublicStoreDeletedItemLifetimeWscript.Echo "Warning limit: " & objItem.WarningLimitWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file