+ Post New Thread
Results 1 to 3 of 3
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 ...
  1. #1
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    439
    Thank Post
    79
    Thanked 95 Times in 79 Posts
    Rep Power
    63

    Script to add computers to AD like RIS

    hi all,

    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.

    any ideas?

    TIA

    BoX

  2. #2

    Join Date
    Mar 2007
    Posts
    323
    Thank Post
    6
    Thanked 7 Times in 6 Posts
    Rep Power
    17
    umm?

    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

    Cheers

  3. #3
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    439
    Thank Post
    79
    Thanked 95 Times in 79 Posts
    Rep Power
    63
    techyphil
    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.

    thanks anyway.

    BoX



SHARE:
+ Post New Thread

Similar Threads

  1. A2Z Computers
    By dezt in forum Bad Experiences
    Replies: 16
    Last Post: 9th September 2008, 03:07 PM
  2. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 12:00 PM
  3. VBS script for prestaging computers anyone?
    By ChrisH in forum Scripts
    Replies: 7
    Last Post: 23rd June 2006, 10:59 AM
  4. RM Computers.
    By Quackers in forum Bad Experiences
    Replies: 7
    Last Post: 26th January 2006, 03:51 PM
  5. Script to shut down computers in a certain OU
    By tosca925 in forum Scripts
    Replies: 11
    Last Post: 25th September 2005, 10:23 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •