RE: Anyone Done This ???
-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/
RE: Anyone Done This ???
Hi, 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. This sounds interesting. The most I can do is rename the hard drive through Windows. Rebranding a PC sounds neat. I'm listening, Tennis Bobby -- 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/
Re: Anyone Done This ???
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? cygwin cannot control remote registry entries (besides ssh'ing to each machine), but the win32 tool regedt32.exe can, and there's a COM API. you only have to check out how to script that via COM (Visual Basic, perl Win32::OLE, pythonwin, ). very easy. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- 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/
Re: Anyone Done This ???
Reini Urban wrote: cygwin cannot control remote registry entries (besides ssh'ing to each machine), but the win32 tool regedt32.exe can, and there's a COM API. it can since 2002. just add hostname to the key name in regtool's command line. For detailed info see http://cygwin.com/cygwin-ug-net/using-utils.html#REGTOOL egor -- 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/