Sets the category of a network. Changes made take effect immediately. Administrative privileges are needed for this method.