Solved

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

Posted on 2008-10-20
3
811 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
Comment Utility
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
Comment Utility
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
Comment Utility
Uhh, you're going to need to run NewSID too, or else you're going to have problems..   ??
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

744 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

17 Experts available now in Live!

Get 1:1 Help Now