Page 1 of 1 1
Topic Options
#155597 - 2006-01-19 10:41 AM Rename computer, join AD and move to OU
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
Hi guys,

I have just joined this forum and I have to say, it looks really good. Loads of good suggestions, scripts and discussions going on. My subject kind of sums up what I am asking and yes, I know this might be a topic that has been covered. My question is about scripts by NTDOC and Radimus. The link below is to a script that they both made with regards to adding to a domain and moving to an OU.

Is anyone using these, or have updated versions? I really like NTDOCs look and feel but am wandering if anyone has updated it to allow the rename of the computer as well.

P.S. I am also fairly new to scripting.

Top
#155598 - 2006-01-19 10:49 AM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well don't see the link, but here is the link to my old one.

JoinAD KiXforms script to move computers into Active Directory
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=75013


I can't speak for Radimus, but no I have not updated mine.
 
I'm sure I'd code it a bit different now days. Probably wouldn't be too hard to update it once you get a little experience with KiXtart.
 

Top
#155599 - 2006-01-19 10:50 AM Re: Rename computer, join AD and move to OU
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Welcome to the board.

Quote:


....
The link below is to a script that they both made with regards to adding to a domain and moving to an OU.
....





What link? I see no link in your post.
Can you provide the link so we know which script you mean?

[edit]
Doc got there first
[/edit]


Edited by Mart (2006-01-19 10:50 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#155600 - 2006-01-19 10:52 AM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Look for RENAME Computer as Les did one a while back too.
Top
#155601 - 2006-01-19 10:55 AM Re: Rename computer, join AD and move to OU
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
Oooops...

Here it is - http://www.kixforms.com/forum/viewtopic.php?t=143&sid=3d0c7c40615c5841385f349bd0965854

And thank you for the quick responses.

Top
#155602 - 2006-01-24 09:42 AM Re: Rename computer, join AD and move to OU
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
A quick note to NTDOC and Radimus. I have combined both of scripts and will now be adding them to our images. Really good stuff and they work perfectly. Thank you both for adding posting them on this site.
Top
#155603 - 2006-01-24 10:05 AM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Thanks for replying back. If you get time please post your final code so that others can learn from it as well.
Top
#155604 - 2006-01-24 11:25 AM Re: Rename computer, join AD and move to OU
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I was working on a new one a while back.

to detect name collisions, remove old machine acct from domain, to autodectect computer OUs, a few other little details

The previous functions work, but the new ones not so much.... I have more to do on it, and haven't looked at it in months, since I built the last image we deployed
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#155605 - 2006-01-24 11:32 AM Re: Rename computer, join AD and move to OU
kirkside Offline
Getting the hang of it

Registered: 2006-01-19
Posts: 52
Loc: UK
I am working on a few tick box options to run a defrag and chkdsk after image installed. One of our desktop engineers says he always does it after rebuild. I have also got it to add a registry to run a prf file after the user logs on which will create the outlook profile.

Whilst I am here, and I know you guys would know how to do this, I want to add a logo to the bottom right of NTDOCs design. How would I do this? Lets just say that the file is in c:\logo.jpg.

Top
#155606 - 2006-01-24 11:36 AM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Just move the location of the image/picture box to where you want and specify the image you want to use.

P.S. If you CHDKDSK / DEFRAG just before running SYSPREP then new image will already be defragged.
 

Top
#155607 - 2006-01-24 12:11 PM Re: Rename computer, join AD and move to OU
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
C:\>defrag
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Usage:
defrag <volume> [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#155608 - 2006-01-24 06:32 PM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Curious Rad, just a post count or some other meaning?
Top
#155609 - 2006-01-24 07:09 PM Re: Rename computer, join AD and move to OU
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
you showed scandisk /defrag, I went straight to defrag
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#155610 - 2006-01-24 07:18 PM Re: Rename computer, join AD and move to OU
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
No ScanDisk - that's Windows 9x

Quote:


CHKDSK
 
Checks a disk and displays a status report.
 
 
CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/C] [/L[:size]]
 
 
volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
filename FAT/FAT32 only: Specifies the files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32: Displays the full path and name of every file
on the disk.
On NTFS: Displays cleanup messages if any.
/R Locates bad sectors and recovers readable information
(implies /F).
/L:size NTFS only: Changes the log file size to the specified number
of kilobytes. If size is not specified, displays current
size.
/X Forces the volume to dismount first if necessary.
All opened handles to the volume would then be invalid
(implies /F).
/I NTFS only: Performs a less vigorous check of index entries.
/C NTFS only: Skips checking of cycles within the folder
structure.
 
The /I or /C switch reduces the amount of time required to run Chkdsk by
skipping certain checks of the volume.





Then after a CHKDSK I'd run the DEFRAG of the drive as I've seen many times that CHKDSK has found errors during the building process of a system. Depending on how severe the error is Defrag may or may not flag it so I don't recommend simply running DEFRAG without first running CHKDSK
 

 

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2175 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.068 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org