| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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" <dk AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: Anyone Done This ??? |
| Date: | Thu, 12 Aug 2004 12:31:39 +0100 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <411A8F9C.4090204@x-ray.at> |
| Message-ID: | <NUTMEGRjtDxnAhsmRbQ00000d09@NUTMEG.CAM.ARTIMI.COM> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |