Michael Leonard
asked on
can someone provide a script for the following
we are looking for a script that will accomplish the following if possible:
1. add a user to the local administrator account
2. rename the machine
3. add computer to domain and reboot.
ideally if the script would prompt for step 1 and 2, so that we could enter the info. or if it can pull from a txt input file.
thx
1. add a user to the local administrator account
2. rename the machine
3. add computer to domain and reboot.
ideally if the script would prompt for step 1 and 2, so that we could enter the info. or if it can pull from a txt input file.
thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bottom script is rename.vbs
ASKER
thx.
rather than user restricted groups via GPO or local policy, is there a way to have a script prompt for the domian user name and add this to the LA group on the computer?
rather than user restricted groups via GPO or local policy, is there a way to have a script prompt for the domian user name and add this to the LA group on the computer?
Probably. I don't have one in my bag of scripts though.
ASKER
Hi J,
I just tested the rename script and get the error message: "rename failed"
I just tested the rename script and get the error message: "rename failed"
Upload your script here so that I can look it over.