Windows server 2003 – How to perform authoritative restore on deleted OU

Posted by aidas | Posted in Active directory, Command line, Windows 2003 | Posted on 03-05-2009

0

I got situation when administrator deleted OU named “Secred” by mistake. Location of this OU was OU=Secret,OU=PrivUsers,DC=mydomain,DC=com.

To restore it first of all we need to perform non-authoritative restore. To perform it boot your Windows server 2003 into Directory Services Restore Mode (F8 when booting server) and restore latest system state backup with OU secret in place.

Note, if you dont know DSRM password, check this article how to reset it.

After system state restore dont reboot server.

It is time to start authoritative restore. To do that open command line and type:

ntdsutil and press Enter
authoritative restore and press Enter
restore subtree “OU=Secret,OU=PrivUsers,DC=mydomain,DC=com” and press Enter

Confirm that authoritative restore should increase  version numbers when prompted and exit ntdsutil by typing quit two times. After that reboot server into normal mode.

Windows server 2003 – How to perform system state backup with ntbackup via command line

Posted by aidas | Posted in Command line, Windows 2003 | Posted on 03-05-2009

0

This post will show how to create system state backup via command line. The system state backup of a domain controller includes its registry, SYSVOL, Active Directory DIT files and critical system files. To perform system state backup and save it as C:\backups\systemstate.bkf open command line on your Windows server 2003 and type:

ntbackup backup systemstate /F “C:\backups\systemstate.bkf”

Windows server 2003/2008 – How to get disabled services list via power shell

Posted by aidas | Posted in Powershell, Windows 2003, Windows 2008 | Posted on 03-05-2009

0

This post will show how to get services list whose StartMode is set to disabled via power shell. Open power shell in Windows server 2003 or 2008 and type:

gwmi win32_service | where {$_.StartMode -eq “Disabled”}

Windows server 2003 and Windows 2000/XP – How to inventory group policy

Posted by aidas | Posted in Group policy, Tools, Windows 2000, Windows 2003, Windows XP | Posted on 03-05-2009

0

This how to post presents you with GPInventory.exe tool used for group policy inventory and other tasks. It can be downloaded from this location .  This tool retrieves Group Policy informations and is effective for pulling out detailed system information, such as applications that have been installed, processor name and speed, or the list of installed hotfixes.

You will need Windows server 2003 or Windows 2000/XP to run this tool.

Windows server 2003 and Windows XP/Vista – How to draw picture of your AD environment

Posted by Thomas | Posted in Tools, Windows 2003, Windows Vista, Windows XP | Posted on 03-05-2009

0

If you want to have visual picture of your active directory topology you can use Microsoft tool named “Active Directory Topology Diagrammer” which scans Active Directory information and creates Visio picture. This tool will work on Windows server 2003 and Windows XP/Vista systems. You can download it from here .

Note that you need Microsoft Office Vision 2003 or 2007 to run this tool.

How to #Tools by Thomas

Windows server 2008 Core – How to enable automatic updates via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 03-05-2009

0

This post will show you how to enable automatic updates on your Windows server 2008 Core. To do it type:

cscript scregedit.wsf /AU 4

Windows server 2008 Core – How to change the time zone

Posted by aidas | Posted in Windows 2008 | Posted on 03-05-2009

0

How to change time zone in Windows server 2008 Core? It is pretty simple. You just need to start GUI with this command:

control timedate.cpl

Windows server 2008 Core – How to reboot server via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 03-05-2009

0

This post will show you how to reboot Windows server 2008 Core after some changes were made. To reboot type in command line:

shutdown /r

Windows server 2008 Core – How to enable remote desktop administration via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 03-05-2009

0

This how to will show command which enables remote desktop administration on your Windows server 2008 Core server. Note that you`ll be presented with no GUI after remote desktop connection to Core server. Only minimal command line interface will be available for you. To enable it type:

cscript %windir%\system32\SCRegEdit.wsf /ar 0

Windows server 2008 Core – How to change administrative password

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 03-05-2009

0

In this post you`ll see how to change administrative password after new Windows server 2008 Core setup. For this case use net user command:

net user administrator *”

Press Enter and you`ll be prompted to enter new password

Windows server 2008 Core – How to join server to domain via command line

Posted by aidas | Posted in Active directory, Command line, Windows 2008 | Posted on 03-05-2009

0

In this post you`ll see how to join your Windows server 2008 Core to domain named testdomain.com using user ID testuser. To do that type in command line:

netdom join %computername% /domain:testdomain.com /userd: testdomain.com\testuser /passwordd:*