Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Whenever we deploy a new machine via PXE and WDS, I have to log on to our Sever 2008 R2 WDS server via Remote Desktop to approve the machine.

This is annoying, and as we should all know, logging on to a server should be avoided where ever possible.

However, all of my google-fu is failing me, and I can't find any reference to an MMC console for administering WDS from a remote machine. It's not present in the RSAT modules either.

So, does such a thing exist? I don't like it, but I will settle for extracting the files required to run the console from the original server if needed (something like this, but I don't want to do this unless I totally have to. It's difficult to maintain and a pain to document).

Our client machines are all Windows 7 SP1

share|improve this question

2 Answers 2

up vote 5 down vote accepted

You can't (officially) install the snap-in on a non-WDS server, as far as I know (terrible, right?). You could always pre-stage the computer accounts so that you don't have to approve them.

If that's the route you want to go, there's an excellent PowerShell script written by yours truly right here. :)

share|improve this answer
    
This could work... if only I had a list of their MAC addresses... –  Mark Henderson May 15 '12 at 1:11
1  
Not sure what brand you use, but Lenovo prints these on the sides of the boxes complete with a bar-code. A hand-scanner's dream. –  MDMarra May 15 '12 at 1:13
    
We have a huge mix. Some whiteboxes, some Toshibas, some Samsungs. Even with Servers we have some Dell, some HP, some Intel... –  Mark Henderson May 15 '12 at 1:17
    
Really hoping future WinPE will include some PowerShell. There is, [un]fortunately, VBS available, with which you may query WMI to gather MAC, serial, product ID, etc. –  jscott May 15 '12 at 1:35

Manual approval is the best way to get the computers named properly without having to do prestaging (which is not always possible/feasible if the systems don't all have their GUID or MAC written on the case). It's a shame there is no way to have it prompt for the machine name when you choose an image to install.

You can use psexec and optionally a small cmd script to approve new computers from your client sytem:

Download psexec from http://technet.microsoft.com/en-us/sysinternals/bb897553

Save this as approve.cmd:

@echo off
REM Approve WDS pending computers

set wdshost=my-wds-server
set /p requestid="Request ID: "
set /p machinename="Machine Name: "

psexec -i -s \\%wdshost% wdsutil /Approve-AutoAddDevices /RequestID:%requestid% /MachineName:%machinename%

Replace my-wds-server with the name of your WDS server. When you run approve.cmd you'll be prompted for the request ID (shown on the screen of the pending computer) and the machine name to give it.

Depending on your environment you may need to add "-u administrator" to the psexec command to have it run as administrator and prompt for a password. The "-i" and "-s" parameters are needed for wdsutil. It returns errors without them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.