Scripts Thread, Script to add computers to AD like RIS in Coding and Web Development; hi all,
the script needs to add the computer to ad based on the logged on (authenticated) username, but increment ...
29th May 2008, 12:45 AM #1
Script to add computers to AD like RIS
the script needs to add the computer to ad based on the logged on (authenticated) username, but increment it every time
i have tried with adodb recordsets but am unable to get the computernames that match the looged on user.
IDG Tech News
2nd June 2008, 09:59 PM #2
- Rep Power
I'd user autoit with netdom..
autoit will grab the username then i'd get it to prompt for the next number. Or you could make it write to a share and keep counting up from a txt file somewhere. Prolly be quicker to prompt for a number and press OK.. it will then go thru and run netdom to join domain and rename the machine name.
I've done it that way in the past.
Oh if your ghosting, ensure you newsid first
4th June 2008, 09:34 PM #3
thanks for the reply, but i will be using just the one script that
writes a joindomain.vbs to the c: drive,
puts in an auto logon to the registry,
a runonce for the joindomain.vbs ,
removes the machine from the domain and reboots.
the pc then auto logs on
runs the joindomain.vbs (which deletes itself!)
and then joins the domain.
this bit already works.
the thing is that the 120 laptops need renaming at the same time and i wanted to automate that bit too.
By dezt in forum Bad Experiences
Last Post: 9th September 2008, 03:07 PM
By Galway in forum Windows
Last Post: 29th August 2007, 12:00 PM
By ChrisH in forum Scripts
Last Post: 23rd June 2006, 10:59 AM
By Quackers in forum Bad Experiences
Last Post: 26th January 2006, 03:51 PM
By tosca925 in forum Scripts
Last Post: 25th September 2005, 10:23 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)