Share via


Command-Line Options for SAConfig.exe

Syntax

saconfig{-hostname|-adminpass|-restart}
  • -hostname
    Tells saconfig.exe to set a host name for the box. If saconfig.exe is going to be used as a standalone tool, this option should be used together with the –restart option to restart the box after setting the host name.
  • -adminpass
    Tells saconfig.exe to set an administrator password for the server appliance.

Example

The following code sample shows how to set the host name and administrator password, and then restart the box.

saconfig –hostname –adminpass –restart

The following code sample shows how to set the host name only, without restarting the box.

saconfig –hostname 

Remarks

The –restart option should not be used with sysprep because sysprep already restarts the machine.