Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Dave Korn" To: Subject: RE: Anyone Done This ??? Date: Thu, 12 Aug 2004 12:31:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <411A8F9C.4090204@x-ray.at> Message-ID: X-OriginalArrivalTime: 12 Aug 2004 11:31:40.0062 (UTC) FILETIME=[EF70EBE0:01C4805F] > -----Original Message----- > From: cygwin-owner On Behalf Of Reini Urban > Sent: 11 August 2004 22:29 > Tennis Smith (tennis) schrieb: > Has anyone written a utility/script that can change the > name of the PC? I > > have several _dozen_ PCs that need to be converted to a new naming > > convention. > > isn't it just a registry entry? > It may be stored in a registry entry, but changing it probably involves more than just altering the registry, particularly if the computer is joined to a domain. The proper way to rename a domain machine (local or remote) programmatically is with the NetRenameMachineInDomain function from the windoze netapi32 library. If it's not in a domain, you should be able to use the NetServerSetInfo function to much the same end. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/