Solved

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

Posted on 2008-10-20
3
813 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

831 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