Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to rename computer name by vbs

15 views
Skip to first unread message

YJ Kim

unread,
Sep 12, 2007, 2:22:00 AM9/12/07
to
Dear....

I'm Active Directory administrator in some company.
some time our employee request their computer name change.
every that time I solved this request by remote control.
but this situation is very uncomfortable both them and me.
If possible, when them a computer name it renames oneself the rename of
computer name by VBS.

How can make to this VBS??


Shenan Stanley

unread,
Sep 12, 2007, 11:00:28 PM9/12/07
to

Sounds like you are trying to over-complicate things...

Assuming these machines are *in* your active directory, you can rename them
using NETDOM.

netdom renamecomputer /?

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


YJ Kim

unread,
Sep 13, 2007, 12:54:00 AM9/13/07
to
Dear Shenan Stanley,

Thank you for your advice..
But I want they themselves changing the computer name.

I need to simply program or script.

J Ford

unread,
Sep 13, 2007, 11:56:01 AM9/13/07
to
So does everybody in your area have local admin rights and/or permissions to
add/remove machines from the domain? Seems like an administrative nightmare
if you allow this. NETDOM is still probably your easiest and best route,
just make it a batch file that accepts a "name" as a parameter.

NETDOM RENAMECOMPUTER machine /NewName:new-name
/UserD:user [/PasswordD:[password | *]]
[/UserO:user [/PasswordO:[password | *]]]
[/Force]
[/REBoot[:Time in seconds]]

YJ Kim

unread,
Sep 13, 2007, 7:12:00 PM9/13/07
to
Thank you for your advice.

I solved this problem..

Shenan Stanley

unread,
Sep 16, 2007, 3:04:28 PM9/16/07
to
YJ Kim wrote:
> I'm Active Directory administrator in some company.
> some time our employee request their computer name change.
> every that time I solved this request by remote control.
> but this situation is very uncomfortable both them and me.
> If possible, when them a computer name it renames oneself the
> rename of computer name by VBS.
>
> How can make to this VBS??

YJ Kim wrote:
> Thank you for your advice.
>
> I solved this problem..

Would you mind sharing your solution for the benefit of the hundreds of
thousands of individuals that may come across this thread in the future?

http://groups.google.com/group/microsoft.public.windows.server.scripting/browse_thread/thread/f20516b6940a3e09/a081dc776639a5dc?lnk=st&q=&rnum=4#a081dc776639a5dc

0 new messages