TechShizz | Tech Guides for everything in IT

Data Cable Terminations

Category 5 / Cat 5E Patch Cable

Before you begin, you should know which wiring scheme you will be using. The only difference between 568A and 568B wiring is that pairs 2 and 3 (orange and green) are swapped. If you are unsure which one to use then you should go with the 568B diagram. It is the 568B diagram that we demonstrate in this tutorial and the 568A wiring is shown in the diagrams below mainly for illustration. In our estimation the 568B connection is used in over 99% of all straight through applications. Know that using either the A or B standard will produce a "straight through" connection that should work for any Ethernet or POE (power over Ethernet) application. Therefore do not sweat over the choice.

Always go B, not A (although it doesn’t matter anymore)


Application Note: To make a crossover patch cable, you should wire one end 568B and the other end 568A

Active Directory Compaction Script

Compaction Script


@ECHO OFF

ECHO To compact the NTDS.dit file for this domain

ECHO controller ensure you have the following

ECHO folders set up on the c:\

ECHO.

ECHO C:\Temp

ECHO C:\OriginalNTDS

ECHO.

pause

del C:\temp\*.dit

del C:\originalntds\*.dit

net stop ntds /y

ntdsutil "activate instance NTDS" files "compact to C:\temp" quit quit

cd \windows\ntds

del *.log

copy ntds.dit \originalntds

del ntds.dit

copy c:\temp\ntds.dit

ntdsutil "activate instance NTDS" files integrity quit "semantic database analysis" "go fixup" quit quit

ECHO To restart the AD DS press enter.

pause

net start ntds

ECHO Compacting Finished.

pause

Bulk Active Directory Import

CSVDE -i -f c:\users.csv

 

To Loop a DSAdd command

 

for /f "Tokens=*" %i in (c:\5000users.csv) do dsmod user %i -pwd Pa$$w0rD -disabled no

Authoritative Restore

Restore from DSRM

 

For this to work Windows Backup must have taken backups for the ntds.dit file.

 

Browsing the Backups and the NTDS.dit file

 

Manual Snapshots of the drive can be done from

ntdsutil: act inst ntds

snapshot create

list all

 

Select the GUID of the backup and Mount it as follows:

 

Mount {GUID}

 

You can then browse the snapshot in the c:\

 

You can then mount the ntds.dit file inside the mounted backup as follows:

 

Exit ntdsutil and run:

 

dsamain -dbpath c:\$SNAP_65168161358_VOLUMEC$\Windows\ntds\ntds.dit -ldapport 5000

 

This will be mounted and then can be accesses from dsa.msc. You need to change domain controller to dc1.contoso.local:5000 to browse the NTDS.dit file.

 

Performing an Authorative Restore

If an OU or user or whatever needed to be restored authorativly do the following.

 

Restart DC in DSRM (Directory Services Restore Mode)

 

Open CMD

 

bcdedit /set safeboot dsrepair

shutdown /r /t 0