If you want to export your network configuration to a file we will show how to do that. In our case we will export it to networkcfg.txt . Open command line on your Windows server 2008 and type:
netsh -c interface dump > networkcfg.txt
If you`ll need this configuration on this or other server you can import it with this command:
netsh -f networkcfg.txt
This post will show how to reset IP protocol stack configurations for your interface and send output to a reset.txt log file. To perform reset open command line on your Windows server 2008 and type:
netsh int ipv4 reset reset.txt
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 05-05-2009
0
This post will show how to use command line in Windows server 2008 to install and remove role. In our case we will install and then remove Web server role with all IIS components onboard.
To install role type:
servermanagercmd -install Web-Server
To remove Web Server role type:
servermanagercmd -remove Web-Server
More roles can be found here .
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 05-05-2009
0
This post will show you how to list installed Windows server 2008 Core roles using command line. To list roles open command line and type:
oclist | find “Installed”
If your disk volume is marked as “dirty” and you restart computer disk autocheck starts before Windows Server 2003 boots. You can use command line utility chkntfs to set various autocheck options. This how to shows few of them.
To view C: disk state type:
chkntfs C:
To view current autocheck initiation countdown time type (default value is 10 seconds):
chkntfs /t
To change autocheck initiation countdown time to 20 seconds type:
chkntfs /t:20
To exclude F: disk from checking type:
chkntfs /x F:
This post will teach you how to use command line and view boot loader information in boot.ini file from remote system. Lets pretend you want to see boot information for Windows server 2003 named “Testserver” from your Windows XP machine. For that you`ll use Admin user which is local administrator on “Testserver” with password “Pa$$w0rd”. To perform query start command line on your Windows XP and type:
bootcfg /query /s Testserver /u Testserver\Admin /p Pa$$w0rd
As you know Address Resolution Protocol or ARP is used to map IP addresses to MAC. This how to shows the way to add static ARP cache entry and map specific IP to specific MAC. In our example we will use IP:192.168.0.10 and MAC:00-B4-01-6C-7B-81. To add entry open command line on your Windows server 2003 and type:
arp -s 192.168.0.10 00-B4-01-6C-7B-81
Address Resolution Protocol or ARP is used to map IP addresses to MAC. This how to shows the way to see ARP cache on all network interfaces. To do it open command line on your Windows server 2003 and type:
arp -a
You have Windows server 2008 and want to install Read Only Domain Controller role on it? First you need to prepare your domain before you can do this operation. For that open command line on your Windows server 2008 and type:
adprep /rodcprep
How to #CMD by Thomas
If you want to disable Exchange 2007 user mailbox this how to is for you. This operation will remove all exchange attributes from active directory user. Lets disable mailbox for user named “testuser”. To do it open exchange powershell on Windows server 2003 and type:
Disable-Mailbox testuser@testdomain.com
This post will show you how to enable or disable ActiveSync for mailbox user named testuser using powershell on Windows server 2003.
To enable ActiveSync type:
Set-CASMailbox -Identity testuser@testdomain.com -ActiveSyncEnabled $true
To disable ActiveSync type:
Set-CASMailbox -Identity testuser@testdomain.com -ActiveSyncEnabled $false
This post will show you how to enable or disable MAPI for mailbox user named testuser using powershell on Windows server 2003.
To enable MAPI type:
Set-CASMailbox -Identity testuser@testdomain.com -MAPIEnabled $true
To disable MAPI type:
Set-CASMailbox -Identity testuser@testdomain.com -MAPIEnabled $false