This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Differentiate workgroup system from domain member under Cygwin
- From: "Cooper, Karl (US SSA)" <karl dot cooper at baesystems dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 22 Jan 2010 07:59:19 -0500
- Subject: RE: Differentiate workgroup system from domain member under Cygwin
> 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"
And for me, it is necessary to use "Workstation" (capital W) rather than "workstation".
--
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