For backwards compatibility, Windows is able to provide a 8.3-shortened name for each file and folder. As most people do not need that (most software is able to deal with longer paths), some administrators switch off this support. As a result, commands like DIR /X (which depend on 8.3 support) do not work anymore.
One consequence is that the GlassFish batches will not work anymore, as it uses commands like "%%~sa%" in e. g. appclient.bat. The used option (~s) is dependend of enabled 8.3 support.
As GlassFish is not really dependend on 8.3 files but simply uses ~s as a trick (8.3 guarantees to have no blanks in paths) this should be fixed in a future release. It makes no sense to force Windows administrators to keep 8.3 support enabled, just because some batch programmers did not find another way to deal with blanks in paths (tip: Use Java instead of batch).