From the command line we can start and stop the domain by carrying out the following codes, I assume that you have installed glassfish 4 in root C drive
Start a domain:
C:\glassfish4\glassfish\bin\asadmin.bat start-domain domain1
Stop a domain:
C:\glassfish4\glassfish\bin\asadmin.bat stop-domain domain1