Перейти к содержимому

Фотография

Работа с Active Directory

- - - - -

  • Авторизуйтесь для ответа в теме

#1
DaRK_FeeLiNG

Отправлено 18 ������ 2009 - 05:20

DaRK_FeeLiNG

    Свояк

  • Пользователи
  • 172 сообщений
Кто нить работал с ACtive directory и при реорганизации приходилось менять имена компьютеров чуть ли не 200 штукам, никто не подскажет каких нить скриптов которые могли бы делать это самостоятельно...
на vbs или javascript...
или подскажите альтернативные варианты... так как ходить от компьютера к компьютеру это займет слишком много времени

#2
SCobraT

Отправлено 14 ��� 2009 - 12:59

SCobraT

    Свояк

  • Пользователи
  • 168 сообщений
Что это такое я давно слышал об этом?????

#3
canavarro

Отправлено 14 ��� 2009 - 02:44

canavarro

    Новоприбывший

  • Пользователи
  • 26 сообщений
C:\>NETDOM RENAMECOMPUTER /?
The syntax of this command is:

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

NETDOM RENAMECOMPUTER renames a computer that is joined to a domain. The
computer object in the domain is also renamed. Certain services, such as the
Certificate Authority, rely on a fixed machine name. If any services of this
type are running on the target computer, then a computer name change would
have an adverse impact. This command should not be used to rename a domain
controller.

machine is the name of the workstation or member server to be renamed

/NewName Specifies the new name for the computer. Both the DNS host
label and the NetBIOS name are changed to new-name. If
new-name is longer than 15 characters, the NetBIOS name is
derived from the first 15 characters

/UserD User account used to make the connection with the domain
to which the computer is joined. This is a required parameter.
The domain can be specified as "/ud :Domain\user". If domain is
omitted, then the computer's domain is assumed.

/PasswordD Password of the user account specified by /UserD. A * means
to prompt for the password

/UserO User account used to make the connection with the machine to
be renamed. If omitted, then the currently logged on user's
account is used. The user's domain can be specified as
"/uo :Domain\user". If domain is omitted, then a local computer
account is assumed.

/PasswordO Password of the user account specified by /UserO. A * means
to prompt for the password

/Force As noted above, this command can adversely affect some services
running on the computer. The user will be prompted for
confirmation unless the /FORCE switch is specified.

/REBoot Specifies that the machine should be shutdown and automatically
rebooted after the Rename has completed. The number of seconds
before automatic shutdown can also be provided. Default is
30 seconds


NETDOM HELP command | MORE displays Help one screen at a time.

The command completed successfully.

Вбиваешь старое имя удалённого (можно и локального) компа, новое, потом ребут один и он в домене уже с новым именем. Видать придётся писать скрипт с соответствием старых и новых имён и запускать его.

#4
PROFESSIONAL

Отправлено 16 ������ 2010 - 02:22

PROFESSIONAL

    Профессионал

  • Неактивированные
  • 585 сообщений
Цитата(DaRK_FeeLiNG @ Apr 18 2009, 17:20) <{POST_SNAPBACK}>
Кто нить работал с ACtive directory и при реорганизации приходилось менять имена компьютеров чуть ли не 200 штукам, никто не подскажет каких нить скриптов которые могли бы делать это самостоятельно...
на vbs или javascript...
или подскажите альтернативные варианты... так как ходить от компьютера к компьютеру это займет слишком много времени

Вбиваешь старое имя удалённого (можно и локального) компа, новое, потом ребут один и он в домене уже с новым именем. Видать придётся писать скрипт с соответствием старых и новых имён и запускать его.

#5
AJIekceY

Отправлено 20 ������� 2010 - 05:14

AJIekceY

    Новоприбывший

  • Пользователи
  • 12 сообщений
А для чего ваще нужен этот Active Directory?