Цитата Griffin:
ComputerName = %MACHINENAME% »
|
Это будет срабатывать только в режиме "
Предварительная настройка клиентских компьютеров"
читать дальше »
There are several methods to name computers using WDS, and here are my conclusions:
All of them are for the "imageunattend.xml" answer file
Put "%MACHINENAME%" (without quotes) inside the ComputerName tag (Microsoft-Windows-Shell-Setup_neutral -- Pass 4 Specialize) without Pre-Staging the computer in AD (Pre-Creating the computer in AD), then you should Right Click your WDS Server inside the WDS Console and go to Properties (remember to save your answer file), now click on the "PXE Response" Tab and Click the Radio Button "Respond to all Client Computers" and the Check Box "Require Administrator Approval..." and click OK, after that you might want to load your saved answer file in one of your Install Images. When the computer boots up from PXE and from WDS it'll wait for approval then in your WDS Console in the "Pending Devices" node click refresh and you will see the computer (unless it has already been accepted), right click it and select "Name and Approve" you can write a name, that's it your deployment will continue.....NOTE: THIS METHOD IS QUITE PROBLEMATIC, I RECOMEND YOU NOT TO USE IT BECAUSE, some devices have problems using the Administrator Approval feature and will not boot from WDS, another one is the pain for naming each computer one by one inside the pending devices node, but it works...
Put "%MACHINENAME%" (without quotes) inside the ComputerName tag (Microsoft-Windows-Shell-Setup_neutral -- Pass 4 Specialize), in this case you will Pre-Stage your computer and when you're creating the Computer inside AD, it'll prompt you for the GUID, here you will enter 20 ceros and then your MAC Address like this 000000000000000000000014BC78A9, do not use the Administrator Approval unless you want it (but in that case you'll use just the "Approve" option not "Name and Approve"), then do the deployment and you'll see the name...NOTE: YOU'LL WASTE SOME TIME PRE-STAGING
Put "*" (without quotes) inside the ComputerName tag (Microsoft-Windows-Shell-Setup_neutral -- Pass 4 Specialize) or LEAVE IT BLANK (EMPTY), both ways work, but in this case you will set to "true" the "UnsecuredJoin" tag inside "Microsoft-Windows-UnattendedJoin_neutral" node giving the option to use a null-session to join the computer anonymously in the Domain, actually it'll be unsecured in the case you do not prompt the user for the WDS Credentials in the boot answer file (unattend.xml), save your image answer file and load it in your Install Image, right click your server inside the WDS Console and go to properties, then click on the AD DS tab and write your format, mine was "PC%03#" without quotes, after that you should be good to go on your deployments, i recomend you to read the Help File about unsecuredjoin and mostly all of the credentials options, good luck, sorry for my bad english. My first deployment on "Win 7 Ent x64" gave a computer name like this "PC001". =P
Another way to do this is by erasing the ComputerName tag directly from your xml file (<ComputerName></ComputerName>), then it'll prompt you for the computer name, i'm actually using this when i'm not joining the computer to the domain, because the policy applies only to AD DS, that's it.
If you're trying to keep the name of an actual existing AD Computer, you'd like to use the "%MACHINENAME%" variable inside the ComputerName tag because it'll search in AD for a Computer with the same GUID and then it'll apply the name that used to have.
Search another command and script ways for this using variables or anything else, inside Microsoft you should find everything, thank you.
А у меня стоит задача: установка "Предварительно настроенного образа" через WDS доменными пользователя с автоматическим присвоением имени ПК по имени доменного пользователя инициализировавшего установку образа на свой ПК.