• hi Gianluca Sartori

    The Script run perfectly and output looks great..

    I just encounter one problem when i run the script, it gives this error on 5 of my servers and rest went well

    the error is:

    The following exception occurred while trying to enumerate the collection: Failed to connect to server (ServerName).".

    At line :5 char:22

    +foreach($Database in $Sqlserver.Databases)

    + ~~~~~~~~~~~~~~~

    +Categoryinfo : NotSpecified: (:)[] extendedtypesystemexception

    +FullyQualifiedErrorID: ExceptionInGetEnumerator

    this is the error i am getting on 5 servers out of 72 servers

    can you please look into this