Ejik Posted April 8, 2010 Report Share Posted April 8, 2010 Добрый день, если кто сталкивался подскажите как переименовать комп удаленно. Я делая так: NETDOM RENAMECOMPUTER oldname /newname:newname /UserO:domen\username /PasswordO: password и в ответ выходит такое сообщение: The name 'newname'does not conform to Internet Domain Name Service specifications, although it conforms to Microsoft specifications. This operation will rename the computer oldname to newname Certain services, such as the Certificate Authority, rely on a fixed machine name. If any services of this type are running on oldname, then a computer name change would have an adverse impact. ╬Єърчрэю т фюёЄєях. The command failed to complete successfully. Quote Link to comment Share on other sites More sharing options...
Ejik Posted April 8, 2010 Author Report Share Posted April 8, 2010 Прошу прощения не внимательно прочитал справку, для доменного пользователя и пароля нужно вводить не /UserO и /PasswordO, а /UserD и /PasswordD. Quote Link to comment Share on other sites More sharing options...
Ejik Posted April 9, 2010 Author Report Share Posted April 9, 2010 Как можно, тоже удаленно, поменять description (описание) компьютера? Quote Link to comment Share on other sites More sharing options...
Maikll Posted April 9, 2010 Report Share Posted April 9, 2010 Set WshNetwork = WScript.CreateObject («WScript.Network»)strComputer = Wscript.Arguments.Item (0)strDescription = Inputbox («Enter Description:»)Set Obj= GetObject («winmgmts:\» & strComputer).InstancesOf («Win32_OperatingSystem»)For Each x In Objx.Description = strDescriptionx.Put_NextWScript.Quit При запуске в качестве параметра указать имя компьютера, для которого надо сменить description Quote Link to comment Share on other sites More sharing options...
Elektronic201009 Posted April 11, 2010 Report Share Posted April 11, 2010 Спасибо. Как раз искал данную инфу. Все работает комп переименовывается. Quote Link to comment Share on other sites More sharing options...
Ejik Posted April 13, 2010 Author Report Share Posted April 13, 2010 В скриптах я точно не селен :) , Maikll: если не сложно, можно прокомментировать ваш скрипт. Чтобы хот понять что и как работает. И если есть ссылки на ресурсы по данной теме, где можно подробно почитать. Или хорошую книгу. Заранее огромное спасибо. Quote Link to comment Share on other sites More sharing options...
Maikll Posted April 13, 2010 Report Share Posted April 13, 2010 если не сложно, можно прокомментировать ваш скрипт. Чтобы хот понять что и как работает. Гм... получает имя компа из параметра при запуске, спрашивает в диалоговом окне описание, выбирает все компы с именем, совпадающим с заданным, в цикле меняет им описание на заданное в предыдущем шаге. И если есть ссылки на ресурсы по данной теме, где можно подробно почитать Script Center + MSDN Library Quote Link to comment Share on other sites More sharing options...
Ejik Posted April 14, 2010 Author Report Share Posted April 14, 2010 Спасибо, давно пора заняться изучением написания скриптов, но как то времени все нет. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.