$ 0 0 The command line to find the schema master is:dsquery server -forest -hasfsmo schemathe one you provided above is not working and throws an error.