This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Windows hostname change fails in recent versions of Cygwin (since 1.7.28)
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: "Larry Hall (Cygwin)" <cygwin at cygwin dot com>
- Date: Tue, 15 Apr 2014 03:26:58 +0400
- Subject: Re: Windows hostname change fails in recent versions of Cygwin (since 1.7.28)
- Authentication-results: sourceware.org; auth=none
- References: <CAKJ_xGsTh4agckE4LXozZhbEHYmRffy6HWNDYMEJ8ZfkDC=26Q at mail dot gmail dot com> <534C63A5 dot 9040704 at cygwin dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Larry Hall (Cygwin)!
>> The following command used to allow me to change the hostname of a Windows
>> machine:
>>
>> wmic computersystem where name=\"$COMPUTERNAME\" call rename name=newname
>>
>> With new installs of Cygwin this seems to have stopped working...
> OK maybe I'm just missing something but what part of the above uses Cygwin?
Shell prompt.
The user were able to execute specific command with previous versions of
Cygwin1.dll, but unable now.
@Wedge, there was some changes around handling '=', which is SUDDENLY
considered a separator character (that is, on par with space) for CMD.exe
batch files parameters.
I can't recall the exact dates, sorry.
Also, is the escaping of quotation marks around computer name necessary?
Try without them.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 15.04.2014, <03:23>
Sorry for my terrible english...
--
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