Solved

Help creating a script to change local PC name, workgroup, and add User with auto logon

Posted on 2008-10-20
3
812 Views
Last Modified: 2013-11-10
I am new to scripting, but need to create a script will work with my syspreped computers.  I need the ability to run external script to change the computer name, change the workgroup name, and add a local user with admin rights, and then reboot the computer.

I am running a script that will push the image to multiple new computers, but all the computers will have the same name etc.  So what I want to do is have a script that will boot on computer (VM) and then run this script to rename everything, add user, etc, and then move on to pushing the next pc and then running this script again with a different name until all are booted up with names changed etc.

Thank you in advance for all your help!

0
Comment
Question by:slavetonone
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
lodar123 earned 334 total points
ID: 22761135
I have a tool that does all this... I'll post it when i get home.  
Its very usefull and simple to use.  You can create an admin user (or not), change computer name, join workgroup or domain etc... all in the same window. I never tried it but i think you can also run it automatically with parameters or a ini file.
0
 
LVL 5

Assisted Solution

by:lodar123
lodar123 earned 334 total points
ID: 22763905
Ok I attached the script here.
Inside the zip file there is 2 files.  THEY ARE BOTH RENAMED TO TXT because i cant use their original extention or i cant attach them here.
Anyways just rename for the following:
CreateUser.txt ====> CreateUser.exe
NewUser.txt =====> NewUser.ini
Hope this solves your issue :)
Cheers!

CreateUser.zip
0
 
LVL 18

Assisted Solution

by:exx1976
exx1976 earned 166 total points
ID: 22768824
Uhh, you're going to need to run NewSID too, or else you're going to have problems..   ??
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now