X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 22 Jan 2010 10:49:44 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Differentiate workgroup system from domain member under Cygwin Message-ID: <20100122094944.GM2402@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <889F761889B73C489CED80057EEE29DF032B5AD3 AT spsmail DOT prosozial DOT lokal> <20100120154611 DOT GA23663 AT ednor DOT casa DOT cgf DOT cx> <20100122092056 DOT GJ2402 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 22 10:34, Christoph Herdeg wrote: > So question is more if there is any place on a windows system, a file or a > directory or an entry in a file that exists only if that machine is a > domain member? There are certainly multiple methods to fetch this information. One of them is, for instance: bash$ net config workstation | grep -q 'Domain DNS' \ && echo domain-member || echo standalone-machine Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple