Redirecting the users and computers containers in Active Directory domains

Redirecting CN=Users to an administrator-specified organizational unit
Log on with domain administrator credentials in the z domain where the CN=Users container is being redirected.
Transition the domain to the Windows Server 2003 domain functional level or newer in either the Active Directory Users and Computers snap-in (Dsa.msc) or the Domains and Trusts (Domains.msc) snap-in. For more information about increasing the domain functional level, click the following article number to view the article in the Microsoft Knowledge Base:
322692 (http://support.microsoft.com/kb/322692/ ) How to raise domain and forest functional levels in Windows Server 2003
Create the organizational unit container where you want users who are created with earlier-version APIs to be located, if the organization unit container that you want does not already exist.
Run the Redirusr.exe file at the command prompt by using the following syntax, where container-dn is the distinguished name of the organizational unit that will become the default location for newly created user objects created by down-level APIs:
c:windowssystem32redirusr
Redirusr is installed in the %SystemRoot%System32 folder on Windows Server 2003-based or newer computers. For example, to change the default location for users who are created with down-level APIs such as Net User to the OU=MYUsers OU container in the CONTOSO.COM domain, use the following syntax:
c:windowssystem32>redirusr ou=myusers,DC=contoso,dc=com

Redirecting CN=Computers to an administrator-specified organizational unit
Log on with Domain Administrator credentials in the domain where the CN=computers container is being redirected.
Transition the domain to the Windows Server 2003 domain in the Active Directory Users and Computers snap-in (Dsa.msc) or in the Domains and Trusts (Domains.msc) snap-in. For more information about increasing the domain functional level, click the following article number to view the article in the Microsoft Knowledge Base:
322692 (http://support.microsoft.com/kb/322692/ ) How to raise domain and forest functional levels in Windows Server 2003
Create the organizational unit container where you want computers that are created with earlier-version APIs to be located, if the desired organizational unit container does not already exist.
Run the Redircmp.exe file at a command prompt by using the following syntax, where container-dn is the distinguished name of the organizational unit that will become the default location for newly created computer objects that are created by down-level APIs:
redircmp container-dn container-dn
Redircmp.exe is installed in the %Systemroot%System32 folder on Windows Server 2003-based or newer computers. For example, to change the default location for a computer that is created with earlier-version APIs such as Net User to the OU=mycomputers container in the CONTOSO.COM domain, use the following syntax:
C:windowssystem32>redircmp ou=mycomputers,DC=contoso,dc=com
Note When Redircmp.exe is run to redirect the CN=Computers container to an organizational unit that is specified by an administrator, the CN=Computers container will no longer be a protected object. This means that the Computers container can now be moved, deleted, or renamed. If you use ADSIEDIT to view attributes on the CN=Computers container, you will see that the systemflags attribute was changed from -1946157056 to 0. This is by design.

more info: see microsoft.com

Super unattend cmd script

This is my super unattend file,

[shell]
@echo off

@echo **********************************
@echo **********************************
@echo * *
@echo * *
@echo * INSTALLING PROGRAMS *
@echo * *
@echo * *
@echo * Powered Bye: *
@echo * Pouyan Khabazi *
@echo * *
@echo * *
@echo **********************************
@echo **********************************

@echo Installing AutoItV3
@echo Please Wait…
@echo off
start /wait stingrayshareautoitv3.exe /S

@echo Installing Adobe Reader 9
@echo Please Wait…
@echo off
stingrayshareAdbeRdr90_en_US.exe /update-no /sAll /rs /l /msi"/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"

@echo Installing Internet Explorer 8
@echo Please Wait…
@echo off
start /wait stingrayshareIE8.exe /quiet /passive /update-no

@echo Installing Java Update
@echo Please Wait…
@echo off
stingraysharejre_6u10.exe /s /v "/qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 INSTALLDIR=C:javajre-6U10"

@echo Installing Adobe Flash Player 9
@echo Please Wait…
@echo off
start /wait stingrayshareflash_player.exe /S

@echo Installing File Format Converter
@echo Please Wait…
@echo off
start /wait stingrayshareFileFormatConverters.exe /quiet /passive

@echo Installing GIMP
@echo Please Wait…
@echo off
start /wait stingraysharegimp.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART

@echo Installing PDF Printer
@echo Please Wait…
@echo off
start /wait stingrayshareBullzipPDFPrinter.exe /sp- /silent /norestart /noicons

@echo Installing Image Resizer
@echo Please Wait…
@echo off
start /wait stingrayshareImageResizerPowertoySetup.exe /S /v /qn

@echo Installing HTML Slide Show Viewer
@echo Please Wait…
@echo off
start /wait stingrayshareHTMLSlideShowSetup.exe /Q

@echo Installing winlame
@echo Please Wait…
@echo off
start /wait stingraysharewinlame.msi /quiet /passive

@echo Installing Photo Story 3
@echo Please Wait…
@echo off
start /wait stingraysharePStory.msi /quiet /passive

@echo Installing KB932823 Update
@echo Please Wait…
@echo off
start stingrayshareKB932823.au3 /quiet /passive

@echo ping -n 90 localhost

@echo Installing Codecs
@echo Please Wait…
@echo off
start stingraysharexpcodecpack.au3

@echo ping -n 30 localhost

@echo The Computer will now shutdown

@echo Press any key to continue…

pause

shutdown -r
[/shell]

Create Computer in AD

Create a computer in AD without joining it:

dsadd.exe computer "CN=ComputerName,OU=OrganizationUnit,DC=Contoso,DC=msft"

To do this for 100 or more computers you can use this script:

Create a CSV File with computer names:

Computer1,
Computer2,
Computer3,
For /F "eol=;" %%1 In (c:ComputerNames.csv) Do dsadd.exe computer "CN=%%1,OU=OrganizationUnit,DC=Contoso,DC=msft"

Block MSN Messenger

If you want to block MSN messenger on a local computer, just add next lines to you local host file:

open : “%windir%System32driversetchosts”

Enter the following lines into the host file:
[text]
127.0.0.1 gtwy.messenger.hotmail.com
127.0.0.1 messenger.hotmail.com
127.0.0.0 gateway.messenger.hotmail.com
[/text]