This post will show you how to change default organizational units for newly created user or computer objects in Active Directory. By default all new computer accounts are being created in OU=computers,dc=mydomain,dc=com and all new user accounts in OU=users,dc=mydomain,dc=com . In order to change default locations make sure that:
* new default OU exist in AD
* your domain functional level is “Windows server 2003″
* your PDC is online (check FSMO)
Now we will use command line tools redircmp and redirusr to perform change. Lets say you created new OU for computers named “newCmp” and OU for users named “newUsr”.
To change default location for user accounts open command line and type:
redirusr ou=newUsr,dc=yourdomain,dc=com
To change default location for computer accounts open command line and type:
redircmp ou=newCmp,dc=yourdomain,dc=com
This article will explain how to backup IIS metabase using command line. To perform backup open command line on your Windows server 2003 and type:
cscript iisback.vbs /backup /b <backupname>
This post will show you how to use command line to get SID of specific service. To get SID for “workstation” service open command line on your Windows server 2003 and type:
sc showsid workstation
This post will show you quick way how to ged rid of service using command line. To delete service open command line on your Windows server 2003 and type:
sc delete <service name>
This post will show you how to clear arp cache on your Windows server 2003 using command line. To do it open command line and type:
netsh interface ip delete arpcache
This post will show you how to view network configuration on remote server using command line. Lets say we want to check network configuration on remote server named “Testserver1″. To do it open command line on your Windows server 2008 and type:
netsh -r Testserver1 interface ip show config
If you need to supply different credentials to run this command type:
netsh -r Testserver1 -u testdomain.com\Admin -p Pa$$w0rd interface ip show config
This post will show how to end running process by using command line on your Windows server 2003. First of all you need to run tasklist command to view PID number of the process you want to end. To do it type:
tasklist
To end process type:
taskkill /PID <PID number>
To end process on remote server named “Testserver” type:
taskkill /s Testserver /PID <PID number>
Note that you can always type taskkill /? for more command usage examples
This post will show how to view running processes using command line on your Windows server 2003. To do it open command line and type:
tasklist /v /fi “status eq running”
To view running processes on remote server named “Testserver” type:
tasklist /s Testserver /v /fi “status eq running”
Note that you can always type tasklist /? for more command usage examples
This article will show you how to create log file of memory resources consuming on your Windows server 2003. To create log and place it to D:\Logs directory open command line on your Windows server 2003 and type:
memsnap /m D:\Logs\memoryusage.log
Created log will be in “raw” format and in order to read it is recommended generate log analysis file. To generate it type:
memsnap /a D:\Logs\memoryusage.log
Note that memsnap is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory).
This post will show you how to test Kerberos authentication between server and your domain. Note that this operation must be run on server or workstation being tested and cannot run remotely. To perform Kerberos check on domain named “testdomain.com” open command line on your Windows server 2003 and type:
netdom trust /d:testdomain.com /verify /kerberos
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
This post will show how to verify domain trust relationship in one-way and two-way trust cases. Lets say we have testdomain1.com and testdomain2.com domains with one-way trust established. To verify one-way domain trust open command line on your Windows server 2003 and type:
netdom trust /d:testdomain1.com testdomain2.com /verify
If we have two-way trust established to verify it type:
netdom trust /d:testdomain1.com testdomain2.com /verify /twoway
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
This post will show you how to remove you server from domain using command line tool netdom. Lets say we want to remove server named “Testserver” from domain testdomain.com. To do it open command line on your Windows server 2003 and type:
netdom remove /d:testdomain.com testserver /ud:testdomain.com\Admin /pd:Pa$$w0rd
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .