Forum Discussion

SSam's avatar
SSam
Level 3
4 years ago

Powershell script to create SearchFolderManager automatically for all mailboxes listed in the server

Hi All,

I tried the powershell script shared by Veritas to run SearchFolderManager automatically for all mailboxes listed in the server's 3492 events from technote below.

https://www.veritas.com/support/en_US/article.100032531

When tried for specific time frame as below I got "No events were found that match specified selection criteria" eventhough there are many events.I doubt its because of the timestamp reference.

.\RunSearchFolderManagerForAllMailboxesWith3492Events.ps1 -StartDate "1/9/2021 6:00:00 PM" -EndDate "1/9/2021 8:00:00 PM"

There is a start time and end time quoted in the script given in the technote, should i change the time in script or how to refer it with the time reference while executing  the command.

Please guide me.

 

 

 

  • Hello,

    You seem to use: -StartDate "1/9/2021 6:00:00 PM" -EndDate "1/9/2021 8:00:00 PM"

    I suggest to first try: -StartDate "1/9/2021 6:00:00" -EndDate "1/9/2021 8:00:00"

    If that does not work, try -StartDate "9/1/2021 6:00:00" -EndDate "9/1/2021 8:00:00"

  • SSam's avatar
    SSam
    4 years ago

    Thanks for guiding Gertjan.

    Below command worked for me. Earlier it was a typo error with extra space while using the quotes

    .\RunSearchFolderManagerForAllMailboxesWith3492Events.ps1 -StartDate "1/9/2021 6:00:00 PM" -EndDate "1/9/2021 8:00:00 PM"

  • Hello,

    You seem to use: -StartDate "1/9/2021 6:00:00 PM" -EndDate "1/9/2021 8:00:00 PM"

    I suggest to first try: -StartDate "1/9/2021 6:00:00" -EndDate "1/9/2021 8:00:00"

    If that does not work, try -StartDate "9/1/2021 6:00:00" -EndDate "9/1/2021 8:00:00"

    • SSam's avatar
      SSam
      Level 3

      Thanks for guiding Gertjan.

      Below command worked for me. Earlier it was a typo error with extra space while using the quotes

      .\RunSearchFolderManagerForAllMailboxesWith3492Events.ps1 -StartDate "1/9/2021 6:00:00 PM" -EndDate "1/9/2021 8:00:00 PM"

      • GertjanA's avatar
        GertjanA
        Moderator

        Cool.

        Can you mark one of the answers as solution?