...but this doesn't seem to quite work because the VM arg isn't passed through run.conf.bat (if you manually put it in the run.conf.bat it does). So close!
That seems to be a bug then. The run.bat.conf was a recent addition, let's see what issue it might have (although i don't have a Windows system right now).
My apologies: it does work after all. It is a little confusing because the opening trace makes it look like it has forgotten the arg:
C:\out-of-the-box\jboss-5.1.0.GA>bin\run -Djboss.service.binding.set=ports-01 Calling C:\out-of-the-box\jboss-5.1.0.GA\bin\run.conf.bat =============================================================================== JBoss Bootstrap Environment JBOSS_HOME: C:\out-of-the-box\jboss-5.1.0.GA JAVA: N:\Program Files\Java\jdk6\bin\java JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server CLASSPATH: C:\out-of-the-box\jboss-5.1.0.GA\bin\run.jar
...but it works anyway.
The Wiki definitely needs updating, though.
That's because the -D option passed from the command prompt does not get set in the JAVA_OPTS. Instead it gets passed directly to the Main class which triggers the AS startup.