Yes something like that.
But which commands can I use?
I also need to delete the entry from the text file when it has been used.
Thanks
Hans
:
hans jacobsen wrote:
I wan't to use sysprep and unattended to automate the installation of
computers.
The biggest challenge is getting a computer name that we can track.
We have found a utility that will make it possible to rename the
computer after the installation. We need to be able to read the
computer name from the file and use that either with the utility or
net name command. After the command has been run it also needs to
delete the entry in the text file so it won't be used again.
Hope this clarifies my question.
So something like a batch script using NewSID or some similar utility?
NETDOM to join the domain/correct OU?
--
<- Shenan ->
--
The information is provided "as is", it is suggested you research for
yourself before you take any advice - you are the one ultimately
responsible for your actions/problems/solutions. Know what you are
getting into before you jump in with both feet.
How about something like this:
[1] @echo off
[2] set name=
[3] for /F %%a in (c:\PCNames.txt) do set name=%%a
[4] type c:\PCNames.txt | find /i /v "%name%" > c:\PCNames.tmp
[5] copy c:\PCNames.tmp c:\PCNames.txt
The batch file will extract names from c:\PCNames.txt, one name
at a time, starting at the bottom.