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
At last tool that is really working! I have tested many tools to clone Windows servers to new hardware but all my attempts were unsuccessfull. BSOD was my constant escort. Few weeks ago i found “Acronis Excho server” with Universal restore function. It worked! I have already cloned 4 servers from old harware to new one with no problems. Latest cloning was old Intel SWV25 model to Sun Fire x2100 M2. All raid configurations are being configured during cloning process in easy understandable GUI. No more BSOD. Try it!
You can read more about this great tool here .
Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009
0
This post will show how to use powershell to verify if autodiscover service is properly configured on your Exchange 2007 server named “TestExchangeServer”. To do it open exchange powershell on your Windows server 2003 and type:
Test-OutlookWebServices -ClientAccessServer “TestExchangeServer”
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
Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009
0
This post will show how to suspend mail queue on Exchange 2007 server using powershell. Lets say that one of your mail queue is growing too big. You want to suspend it and investigate cause of this. To suspend queue that has over 500 messages in it open exchange powershell on your Windows server 2003 and type:
Suspend-Queue -Filter {MessageCount -qt 500}
Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009
0
This post will show you how to remove specific message from Exchange 2007 mail queue using powershell. Lets say we want to remove message that was send by testuser@testdomain.com. Also we want that no Non Delivery Record (NDR) will be generated. To do it open exchange powershell on your Windows server 2003 and type:
Remove-message -filter {FromAddress -eq “testuser@testdomain.com”} -WithNDR $false
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) .
This post will show you how to use command line to rename your domain controller to alternate name. Note that alternate name must be available for DC we want to operate against. Lets say you have domain controller named “TestDC1″ with alternate name “TestDC2″ assigned to it. If you want to make “TestDC2″ primary name for your domain controller open command line on your Windows server 2003 and type:
netdom TestDC1 dc /makeprimary:TestDC2.testdomain.com
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .