X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 	tests=AWL,BAYES_00,FB_WORD1_END_DOLLAR
X-Spam-Check-By: sourceware.org
Message-ID: <4B599CCE.7040901@netcourrier.com>
Date: Fri, 22 Jan 2010 13:40:46 +0100
From: Sylvain RICHARD <sylvainr@netcourrier.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Differentiate workgroup system from domain member under Cygwin
References: <889F761889B73C489CED80057EEE29DF032B5AD3@spsmail.prosozial.lokal>  <20100120154611.GA23663@ednor.casa.cgf.cx>  <OF89C27922.50D14C8F-ONC12576B3.002E8460-412576B3.002ED404@de.ibm.com>  <20100122092056.GJ2402@calimero.vinschen.de>  <OF64A532B4.0C15EAAB-ONC12576B3.0033C47A-412576B3.0034A40C@de.ibm.com> <20100122094944.GM2402@calimero.vinschen.de>
In-Reply-To: <20100122094944.GM2402@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
> 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
>   
Of course you should be aware that localization kicks in. On a French 
Win Server 2k3 machine I get
"Nom DNS du domaine de la station de travail"

Good luck,

-- 
Sylvain RICHARD


--
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

