Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 16th, 2007, 04:25 PM
tenny tenny is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 1 tenny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 27 sec
Reputation Power: 0
Complex retrieval of computer name after image

Ok first I'll explain what I’m trying to do (Warning: complicated!). We have like 125+ tablets. We re-image the tablets using ghost and when they come to boot I want them to auto setup. I almost have the auto setup complete except I have to enter there name when the imaging is complete (to much work when you do 125+ of them). We re-image our tablets 2 to 3 times a year, do to software upgrades, so the tablets we imaging are going to the same person which means same computer name.

My thoughts:
Since the computer name will change after the image I was thinking of doing a “getmac > \\server\username\Mac.txt” (since the mac address will be the same before and after the image) so it puts a text file out on the server on the tablet owners network drive (remember there are going to be 125+ mac.txt in 125+ users directories.) This would be done before the image. (or I could use something else if you could think of it). Or i was thinking of "getmac >>" into one file and search for the string.

Then once it is time to upgrade we would image the tablets. I have the current image now auto logging in under admin for first boot and it asks for a user name. You put in the user name and it sets up the tablet for you. It adds it to the domain, it puts it in the right OU group, and other things. But putting in names at 2am (125 of them) gets hard. I end up screwing the harder names (we have some crazy names). And the numbers of tablets are growing.

So during the first boot instead of inputting the name I would like it to create its own mac.txt (as above but placed on local machine) and then search the \\server\ directory for the matching mac.txt (mac.txt is in someone’s usersname directory). Then from there some how extract the user name from the directory? another file maybe? Any way I could. Or make it a Variable like %1 = tsmith (if tsmith was the computername)

Any ideas? Let me know. Any help will be appreciated. I'm not the best in scripting but I'm learning and this is quite advanced for me.

Reply With Quote
  #2  
Old February 17th, 2007, 02:58 PM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,048 Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Days 12 h 32 m 30 sec
Reputation Power: 555
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
What you are trying to do is going to be very hard from an image file.

Getting the computer name prior to reloading is no problem. Renaming the machine after is no problem as well. To do this, however, you would need to incorporate this into the image, which means a different image for each file.

Here's what I suggest.

Use Excel to create a spreadsheet with each machine's MAC address and the associated username.

Create a logon script that checks the MAC address, retrieves the username, and changes it if it doesn't match.

This would work because the MAC address will not change before and after the reload. This is the best suggestion I have for you.
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > Complex retrieval of computer name after image


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT