Solved! Go to Solution.
If SQLINSTANCE $ALL is used, then it must appear in the first operation of
the batch file. Each operation in the batch file is performed for all SQL Server
instances on the client where the batch file is executed. Also, it is not necessary
to specify an SQLHOST or SQLINSTANCE on any subsequent operations.
The SQLINSTANCE $ALL will only work on a standalone machine with multiple SQL instances and is not designed to work on either a MSCS or Veritas cluster. The function makes a call to the physical "host" name and enumerates all SQL instances attached to that name - it does not enumerate SQL instances attached to a cluster group name."